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-2.txt | 232 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 232 insertions(+) create mode 100644 labb5/res/expected-output-2.txt (limited to 'labb5/res/expected-output-2.txt') diff --git a/labb5/res/expected-output-2.txt b/labb5/res/expected-output-2.txt new file mode 100644 index 0000000..0889d7c --- /dev/null +++ b/labb5/res/expected-output-2.txt @@ -0,0 +1,232 @@ +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? n +Type the 16 letters to appear on the board: asdf +That is not a valid 16-letter board String. Try again. +Type the 16 letters to appear on the board: a0x3f-JKLxyz1234 +That is not a valid 16-letter board String. Try again. +Type the 16 letters to appear on the board: ABCDEFGHIJKLMNOPQ +That is not a valid 16-letter board String. Try again. +Type the 16 letters to appear on the board: ABCDEFGHIJKLMNOP +It's your turn! +ABCD +EFGH +IJKL +MNOP + +Your words (0): {} +Your score: 0 +Type a word (or press Enter to end your turn): fink +You found a new word! "FINK" +ABCD +EFGH +IJKL +MNOP + +Your words (1): {"FINK"} +Your score: 1 +Type a word (or press Enter to end your turn): glop +You found a new word! "GLOP" +ABCD +EFGH +IJKL +MNOP + +Your words (2): {"FINK", "GLOP"} +Your score: 2 +Type a word (or press Enter to end your turn): mink +You found a new word! "MINK" +ABCD +EFGH +IJKL +MNOP + +Your words (3): {"FINK", "GLOP", "MINK"} +Your score: 3 +Type a word (or press Enter to end your turn): + +It's my turn! +My words (5): {"FINO", "JINK", "KNIFE", "KNOP", "PLONK"} +My score: 7 +Ha ha ha, I destroyed you. Better luck next time, puny human! + +Play again (Y/N)? y +Do you want to generate a random board? n +Type the 16 letters to appear on the board: ABCDEFGHIJKLMNOP +It's your turn! +ABCD +EFGH +IJKL +MNOP + +Your words (0): {} +Your score: 0 +Type a word (or press Enter to end your turn): fink +You found a new word! "FINK" +ABCD +EFGH +IJKL +MNOP + +Your words (1): {"FINK"} +Your score: 1 +Type a word (or press Enter to end your turn): Fino +You found a new word! "FINO" +ABCD +EFGH +IJKL +MNOP + +Your words (2): {"FINK", "FINO"} +Your score: 2 +Type a word (or press Enter to end your turn): glop +You found a new word! "GLOP" +ABCD +EFGH +IJKL +MNOP + +Your words (3): {"FINK", "FINO", "GLOP"} +Your score: 3 +Type a word (or press Enter to end your turn): knife +You found a new word! "KNIFE" +ABCD +EFGH +IJKL +MNOP + +Your words (4): {"FINK", "FINO", "GLOP", "KNIFE"} +Your score: 5 +Type a word (or press Enter to end your turn): mink +You found a new word! "MINK" +ABCD +EFGH +IJKL +MNOP + +Your words (5): {"FINK", "FINO", "GLOP", "KNIFE", "MINK"} +Your score: 6 +Type a word (or press Enter to end your turn): JINK +You found a new word! "JINK" +ABCD +EFGH +IJKL +MNOP + +Your words (6): {"FINK", "FINO", "GLOP", "JINK", "KNIFE", "MINK"} +Your score: 7 +Type a word (or press Enter to end your turn): plonk +You found a new word! "PLONK" +ABCD +EFGH +IJKL +MNOP + +Your words (7): {"FINK", "FINO", "GLOP", "JINK", "KNIFE", "MINK", "PLONK"} +Your score: 9 +Type a word (or press Enter to end your turn): KnOp +You found a new word! "KNOP" +ABCD +EFGH +IJKL +MNOP + +Your words (8): {"FINK", "FINO", "GLOP", "JINK", "KNIFE", "KNOP", "MINK", "PLONK"} +Your score: 10 +Type a word (or press Enter to end your turn): + +It's my turn! +My words (0): {} +My score: 0 +WOW, you defeated me! Congratulations! + +Play again (Y/N)? y +Do you want to generate a random board? n +Type the 16 letters to appear on the board: ABDDRCSIIMINSETA +It's your turn! +ABDD +RCSI +IMIN +SETA + +Your words (0): {} +Your score: 0 +Type a word (or press Enter to end your turn): discriminate +You found a new word! "DISCRIMINATE" +ABDD +RCSI +IMIN +SETA + +Your words (1): {"DISCRIMINATE"} +Your score: 9 +Type a word (or press Enter to end your turn): discriminates +You found a new word! "DISCRIMINATES" +ABDD +RCSI +IMIN +SETA + +Your words (2): {"DISCRIMINATE", "DISCRIMINATES"} +Your score: 19 +Type a word (or press Enter to end your turn): animis +You found a new word! "ANIMIS" +ABDD +RCSI +IMIN +SETA + +Your words (3): {"ANIMIS", "DISCRIMINATE", "DISCRIMINATES"} +Your score: 22 +Type a word (or press Enter to end your turn): seismic +You found a new word! "SEISMIC" +ABDD +RCSI +IMIN +SETA + +Your words (4): {"ANIMIS", "DISCRIMINATE", "DISCRIMINATES", "SEISMIC"} +Your score: 26 +Type a word (or press Enter to end your turn): racism +You found a new word! "RACISM" +ABDD +RCSI +IMIN +SETA + +Your words (5): {"ANIMIS", "DISCRIMINATE", "DISCRIMINATES", "RACISM", "SEISMIC"} +Your score: 29 +Type a word (or press Enter to end your turn): criminate +You found a new word! "CRIMINATE" +ABDD +RCSI +IMIN +SETA + +Your words (6): {"ANIMIS", "CRIMINATE", "DISCRIMINATE", "DISCRIMINATES", "RACISM", "SEISMIC"} +Your score: 35 +Type a word (or press Enter to end your turn): tansies +You found a new word! "TANSIES" +ABDD +RCSI +IMIN +SETA + +Your words (7): {"ANIMIS", "CRIMINATE", "DISCRIMINATE", "DISCRIMINATES", "RACISM", "SEISMIC", "TANSIES"} +Your score: 39 +Type a word (or press Enter to end your turn): + +It's my turn! +My words (127): {"ABRI", "ABRIS", "ABSCISE", "ACINI", "ACME", "ACMES", "AIMS", "AINS", "ANIME", "ANIMES", "ANIMI", "ANIS", "ANISIC", "ANTE", "ANTES", "ANTI", "ANTIC", "ANTICS", "ANTIS", "ARBS", "ARCS", "ARISE", "ARMET", "ARMIES", "ARMS", "ATES", "BARIC", "BARM", "BARMIE", "BARMS", "BRIE", "BRIES", "BRIM", "BRIMS", "BRIS", "CABS", "CARB", "CARBS", "CARIES", "CITE", "CITES", "CRAB", "CRABS", "CRIES", "CRIME", "CRIMES", "CRIMINATES", "CRIS", "DINS", "DINT", "DISBAR", "DISC", "DISCI", "DISME", "DISMES", "EMIC", "EMIR", "EMIT", "ETIC", "ETNA", "INIA", "INTI", "INTIME", "INTIS", "ISBA", "ISMS", "ITEM", "ITEMS", "MESIC", "META", "METIS", "MICA", "MICRA", "MIES", "MINA", "MINI", "MINIS", "MINT", "MISDID", "MISE", "MITE", "MITES", "NATES", "NATIES", "NIES", "NIMS", "NISI", "RACISMS", "RICIN", "RICINS", "RIES", "RIME", "RIMES", "RIMS", "RISE", "SCAB", "SCAR", "SCRIM", "SCRIMS", "SEIS", "SEISIN", "SEISM", "SEMI", "SEMINA", "SEMIS", "SETA", "SICS", "SIES", "SIMIAN", "SIMIANS", "SIMS", "SITE", "SITES", "SMIT", "SMITE", "SMITES", "SNIT", "TAIN", "TAINS", "TANS", "TEIID", "TEIIDS", "TICS", "TIES", "TIME", "TIMES", "TINS"} +My score: 219 +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