From fb80ac50825c7ca1fa063d3493175b7b27adbdb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Tue, 17 Nov 2020 15:42:27 +0100 Subject: add given code --- labb5/res/expected-output-1.txt | 144 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 144 insertions(+) create mode 100644 labb5/res/expected-output-1.txt (limited to 'labb5/res/expected-output-1.txt') diff --git a/labb5/res/expected-output-1.txt b/labb5/res/expected-output-1.txt new file mode 100644 index 0000000..f4a3ee3 --- /dev/null +++ b/labb5/res/expected-output-1.txt @@ -0,0 +1,144 @@ +Welcome to CS 106B Boggle! +This game is a search for words on a 2-D board of letter cubes. +The good news is that you might improve your vocabulary a bit. +The bad news is that you're probably going to lose miserably to +this little dictionary-toting hunk of silicon. +If only YOU had a gig of RAM! + +Press Enter to begin the game ... + +Do you want to generate a random board? y +It's your turn! +FYCL +IOMG +ORIL +HJHU + +Your words (0): {} +Your score: 0 +Type a word (or press Enter to end your turn): foo +That word is not in the dictionary. +FYCL +IOMG +ORIL +HJHU + +Your words (0): {} +Your score: 0 +Type a word (or press Enter to end your turn): bar +That word is not long enough. +FYCL +IOMG +ORIL +HJHU + +Your words (0): {} +Your score: 0 +Type a word (or press Enter to end your turn): foil +You found a new word! "FOIL" +FYCL +IOMG +ORIL +HJHU + +Your words (1): {"FOIL"} +Your score: 1 +Type a word (or press Enter to end your turn): foil +You have already guessed that word. +FYCL +IOMG +ORIL +HJHU + +Your words (1): {"FOIL"} +Your score: 1 +Type a word (or press Enter to end your turn): tuba +That word can't be formed on this board. +FYCL +IOMG +ORIL +HJHU + +Your words (1): {"FOIL"} +Your score: 1 +Type a word (or press Enter to end your turn): roof +You found a new word! "ROOF" +FYCL +IOMG +ORIL +HJHU + +Your words (2): {"FOIL", "ROOF"} +Your score: 2 +Type a word (or press Enter to end your turn): form +You found a new word! "FORM" +FYCL +IOMG +ORIL +HJHU + +Your words (3): {"FOIL", "FORM", "ROOF"} +Your score: 3 +Type a word (or press Enter to end your turn): room +You found a new word! "ROOM" +FYCL +IOMG +ORIL +HJHU + +Your words (4): {"FOIL", "FORM", "ROOF", "ROOM"} +Your score: 4 +Type a word (or press Enter to end your turn): roomy +You found a new word! "ROOMY" +FYCL +IOMG +ORIL +HJHU + +Your words (5): {"FOIL", "FORM", "ROOF", "ROOM", "ROOMY"} +Your score: 6 +Type a word (or press Enter to end your turn): grim +That word can't be formed on this board. +FYCL +IOMG +ORIL +HJHU + +Your words (5): {"FOIL", "FORM", "ROOF", "ROOM", "ROOMY"} +Your score: 6 +Type a word (or press Enter to end your turn): grim +That word can't be formed on this board. +FYCL +IOMG +ORIL +HJHU + +Your words (5): {"FOIL", "FORM", "ROOF", "ROOM", "ROOMY"} +Your score: 6 +Type a word (or press Enter to end your turn): banana +That word can't be formed on this board. +FYCL +IOMG +ORIL +HJHU + +Your words (5): {"FOIL", "FORM", "ROOF", "ROOM", "ROOMY"} +Your score: 6 +Type a word (or press Enter to end your turn): room +You have already guessed that word. +FYCL +IOMG +ORIL +HJHU + +Your words (5): {"FOIL", "FORM", "ROOF", "ROOM", "ROOMY"} +Your score: 6 +Type a word (or press Enter to end your turn): + +It's my turn! +My words (16): {"COIF", "COIL", "COIR", "CORM", "FIRM", "GIRO", "GLIM", "HOOF", "IGLU", "LIMO", "LIMY", "MIRI", "MOIL", "MOOR", "RIMY", "ROIL"} +My score: 16 +Ha ha ha, I destroyed you. Better luck next time, puny human! + +Play again (Y/N)? n +Have a nice day. -- cgit v1.2.1