summaryrefslogtreecommitdiffstats
path: root/labb5/res/expected-output-2.txt
blob: 0889d7c7ee7e58110453b3b863290e07a5856fa3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
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.