├── .gitignore
├── .idea
├── vcs.xml
├── misc.xml
├── modules.xml
└── workspace.xml
├── minecraft-draw-my-thing.iml
├── README.md
└── src
└── DrawMyThingBeta.java
/.gitignore:
--------------------------------------------------------------------------------
1 | out/
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/minecraft-draw-my-thing.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Minecraft Draw My Thing
2 |
3 | This is the first side project I ever worked on. I created it in order to beat the "Draw My Thing" pictionary game that existed on a popular Minecraft server. By using this project, I was able to consistently win nearly every round of the game. I discontinued the use of it once I was finished building it because I felt it gave me an unfair advantage in the game. Building this project is what inspired me to pursue a career in computer science. It exists on GitHub for historical purposes.
4 |
--------------------------------------------------------------------------------
/.idea/workspace.xml:
--------------------------------------------------------------------------------
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 | turtle
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 | 1572570009059
158 |
159 |
160 | 1572570009059
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 |
233 |
234 |
235 | 10
236 |
237 |
238 |
239 |
240 |
241 |
242 |
243 |
244 |
245 |
246 |
247 |
--------------------------------------------------------------------------------
/src/DrawMyThingBeta.java:
--------------------------------------------------------------------------------
1 | import javax.swing.*;
2 | import java.awt.*;
3 | import java.util.*;
4 | import java.io.*;
5 | public class DrawMyThingBeta
6 | {
7 | public static void main(String args[])
8 | {
9 | //All Words Possible
10 | String []lettersThree = {"axe","bow","boy","car","eye","fat","pig","sun"};
11 | String []lettersFour = {"ants","baby","bank","bear","beer","bird","boat","book","bowl","burn","cake","chef","cold","crab","desk","dice","eggs","face","fall","farm","fire","flag","frog","gift","hand","hang","hair","hobo","hook","jump","king","kiss","lamp","lava","lion","math","milk","moon","neck","pool","poop","pull","rain","roll","rose","sock","soup","tail","tent","time","tiny","wind","wolf","worm","xbox","yawn"};
12 | String []lettersFive = {"acorn","alien","ankle","angel","anvil","armor","bacon","bagel","beans","beard","bench","berry","blood","boots","booty","bread","brush","camel","candy","chair","cheek","chest","cigar","clock","cloud","clown","couch","comet","crowd","dance","darts","disco","donut","dream","dress","drill","drink","drool","earth","elbow","erupt","flint","ghast","giant","golem","grass","grave","guard","igloo","joker","kirby","leash","light","llama","magic","mario","melon","miner","money","moose","mouse","music","night","ninja","ocean","paint","panda","pants","paper","party","pepsi","phone","photo","piano","pizza","plane","plant","prize","punch","puppy","queen","quick","radar","rifle","river","robot","royal","ruler","salsa","screw","shark","sheep","shout","skirt","skull","skunk","skype","slime","sloth","snake","spoon","spray","squid","stain","stamp","stool","storm","stump","sugar","sushi","swing","syrup","tears","thumb","tiger","tooth","torch","towel","tower","trash","truck","vomit","waist","watch","wheat","witch","zebra"};
13 | String []lettersSix = {"anchor","archer","autumn","bamboo","batman","bikini","booger","branch","bridge","bucket","burger","cactus","camera","carrot","castle","cereal","cheese","cinema","coffee","cookie","crying","desert","domino","dragon","family","finger","flower","forest","frozen","galaxy","grapes","guitar","hammer","laptop","letter","lizard","monkey","mudkip","muffin","nether","pencil","picnic","pillow","pirate","pistol","piston","planet","police","prison","rabbit","school","shield","shorts","skinny","smiley","spider","spring","sprout","sponge","stable","summer","teapot","temple","toilet","tomato","tetris","turtle","violin","window","winter","wither","wizard","yoshi","zipper","zombie"};
14 | String []lettersSeven = {"alcohol","america","baggage","battery","blanket","capture","chicken","chimney","coconut","compass","creeper","cupcake","cyclops","fishing","frisbee","hamster","iceberg","mansion","muscles","noodles","pancake","penguin","pikachu","plumber","present","pumpkin","pyramid","shotgun","snorlax","snowman","stomach","sunrise","toaster","tornado","twitter","unicorn","volcano","yelling","youtube"};
15 | String []lettersEight = {"balloons","bookcase","campfire","cannibal","computer","confused","diamonds","dinosaur","elephant","elevator","emeralds","facebook","fighting","football","iceberg","keyboard","lollipop","mineplex","mushroom","nintendo","notebook","obsidian","pokeball","pregnant","skeleton","sleeping","squirrel","superman","swimming","treehouse","umbrella","uppercut","windmill"};
16 | String []lettersNine = {"alligator","astronaut","bumblebee","butterfly","chocolate","explosion","handcuffs","jellyfish","letterbox","lightning","minecraft","motorbike","sideburns","snowflake","spaceship","spaghetti","speedboat","staircase","telphone","telescope"};
17 | String []lettersTen = {"basketball","calculator","charmander","chestplate","helicopter","sunglasses","television"};
18 | String []lettersEleven = {"playstation"};
19 | String []wordsTwo = {"belly button ","camp fire ","christmas tree","door knob ","ender dragon ","fishing rod ","golf club ","grim reaper ","harry potter ","horse riding ","holding hands ","ice cream ","james bond ","mountain bike ","nether portal ","night time ","pumpkin pie ","santa hat ","stop sign ","tennis racket ","top hat ","traffic lights","troll face ","water gun ","zombie pigman "};
20 | String []wordsThree = {"draw my thing","hot air balloon","pot of gold","salt and pepper"};
21 |
22 | System.out.println("Draw My Thing Cheat Version 1.0\nHow many letters/words? [format: \"three\", \"three words\"]");
23 | Scanner kbReader = new Scanner(System.in);
24 | String choice = kbReader.nextLine();
25 |
26 | if((choice.equals("three"))||(choice.equals("3")))
27 | {
28 | System.out.println("--------------------");
29 | for(int x = 0; x < lettersThree.length; x++)
30 | {
31 | System.out.println(lettersThree[x]);
32 | }
33 | System.out.println("--------------------");
34 | }
35 |
36 | if((choice.equals("four"))||(choice.equals("4")))
37 | {
38 | //All Words
39 | System.out.println("--------------------");
40 | for(int x = 0; x < lettersFour.length; x++)
41 | {
42 | System.out.println(lettersFour[x]);
43 | }
44 | System.out.println("--------------------");
45 |
46 | //Updated Words
47 | System.out.print("Hint: ");
48 | choice = kbReader.nextLine();
49 | System.out.print("Position: ");
50 | int position = kbReader.nextInt();
51 |
52 | if(position==1)
53 | {
54 | System.out.println("------------------------------");
55 | for(int x = 0; x < lettersFour.length; x++)
56 | {
57 | if(lettersFour[x].contains(choice))
58 | {
59 | char reChoice = choice.charAt(0);
60 | if(lettersFour[x].charAt(position-1)==reChoice)
61 | {
62 | System.out.println(lettersFour[x]);
63 | }
64 | }
65 | }
66 | System.out.println("------------------------------");
67 | }
68 | else if(position==2)
69 | {
70 | System.out.println("------------------------------");
71 | for(int x = 0; x < lettersFour.length; x++)
72 | {
73 | if(lettersFour[x].contains(choice))
74 | {
75 | char reChoice = choice.charAt(0);
76 | if(lettersFour[x].charAt(position-1)==reChoice)
77 | {
78 | System.out.println(lettersFour[x]);
79 | }
80 | }
81 | }
82 | System.out.println("------------------------------");
83 | }
84 | else if(position==3)
85 | {
86 | System.out.println("------------------------------");
87 | for(int x = 0; x < lettersFour.length; x++)
88 | {
89 | if(lettersFour[x].contains(choice))
90 | {
91 | char reChoice = choice.charAt(0);
92 | if(lettersFour[x].charAt(position-1)==reChoice)
93 | {
94 | System.out.println(lettersFour[x]);
95 | }
96 | }
97 | }
98 | System.out.println("------------------------------");
99 | }
100 | else if(position==4)
101 | {
102 | System.out.println("------------------------------");
103 | for(int x = 0; x < lettersFour.length; x++)
104 | {
105 | if(lettersFour[x].contains(choice))
106 | {
107 | char reChoice = choice.charAt(0);
108 | if(lettersFour[x].charAt(position-1)==reChoice)
109 | {
110 | System.out.println(lettersFour[x]);
111 | }
112 | }
113 | }
114 | System.out.println("------------------------------");
115 | }
116 |
117 | //Updated Words
118 | Scanner kbReader2 = new Scanner(System.in);
119 | System.out.print("Hint: ");
120 | String choice2 = kbReader2.nextLine();
121 | System.out.print("Position: ");
122 | int position2 = kbReader2.nextInt();
123 |
124 | if(position==1)
125 | {
126 | System.out.println("------------------------------");
127 | for(int x = 0; x < lettersFour.length; x++)
128 | {
129 | if(lettersFour[x].contains(choice) && lettersFour[x].contains(choice2))
130 | {
131 | char reChoice = choice.charAt(0);
132 | char reChoice2 = choice2.charAt(0);
133 | if(lettersFour[x].charAt(position-1)==reChoice && lettersFour[x].charAt(position2-1)==reChoice2)
134 | {
135 | System.out.println(lettersFour[x]);
136 | }
137 | }
138 | }
139 | System.out.println("------------------------------");
140 | }
141 | else if(position==2)
142 | {
143 | System.out.println("------------------------------");
144 | for(int x = 0; x < lettersFour.length; x++)
145 | {
146 | if(lettersFour[x].contains(choice) && lettersFour[x].contains(choice2))
147 | {
148 | char reChoice = choice.charAt(0);
149 | char reChoice2 = choice.charAt(0);
150 | if(lettersFour[x].charAt(position-1)==reChoice && lettersFour[x].charAt(position2-1)==reChoice2)
151 | {
152 | System.out.println(lettersFour[x]);
153 | }
154 | }
155 | }
156 | System.out.println("------------------------------");
157 | }
158 | else if(position==3)
159 | {
160 | System.out.println("------------------------------");
161 | for(int x = 0; x < lettersFour.length; x++)
162 | {
163 | if(lettersFour[x].contains(choice) && lettersFour[x].contains(choice2))
164 | {
165 | char reChoice = choice.charAt(0);
166 | char reChoice2 = choice.charAt(0);
167 | if(lettersFour[x].charAt(position-1)==reChoice && lettersFour[x].charAt(position2-1)==reChoice2)
168 | {
169 | System.out.println(lettersFour[x]);
170 | }
171 | }
172 | }
173 | System.out.println("------------------------------");
174 | }
175 | else if(position==4)
176 | {
177 | System.out.println("------------------------------");
178 | for(int x = 0; x < lettersFour.length; x++)
179 | {
180 | if(lettersFour[x].contains(choice) && lettersFour[x].contains(choice2))
181 | {
182 | char reChoice = choice.charAt(0);
183 | char reChoice2 = choice.charAt(0);
184 | if(lettersFour[x].charAt(position-1)==reChoice && lettersFour[x].charAt(position2-1)==reChoice2)
185 | {
186 | System.out.println(lettersFour[x]);
187 | }
188 | }
189 | }
190 | System.out.println("------------------------------");
191 | }
192 | }
193 |
194 | if((choice.equals("five"))||(choice.equals("5")))
195 | {
196 | //All Words
197 | System.out.println("--------------------");
198 | for(int x = 0; x < lettersFive.length; x++)
199 | {
200 | System.out.println(lettersFive[x]);
201 | }
202 | System.out.println("--------------------");
203 |
204 | //Updated Words
205 | System.out.print("Hint: ");
206 | choice = kbReader.nextLine();
207 | System.out.print("Position: ");
208 | int position = kbReader.nextInt();
209 |
210 | if(position==1)
211 | {
212 | System.out.println("------------------------------");
213 | for(int x = 0; x < lettersFive.length; x++)
214 | {
215 | if(lettersFive[x].contains(choice))
216 | {
217 | char reChoice = choice.charAt(0);
218 | if(lettersFive[x].charAt(position-1)==reChoice)
219 | {
220 | System.out.println(lettersFive[x]);
221 | }
222 | }
223 | }
224 | System.out.println("------------------------------");
225 | }
226 | else if(position==2)
227 | {
228 | System.out.println("------------------------------");
229 | for(int x = 0; x < lettersFive.length; x++)
230 | {
231 | if(lettersFive[x].contains(choice))
232 | {
233 | char reChoice = choice.charAt(0);
234 | if(lettersFive[x].charAt(position-1)==reChoice)
235 | {
236 | System.out.println(lettersFive[x]);
237 | }
238 | }
239 | }
240 | System.out.println("------------------------------");
241 | }
242 | else if(position==3)
243 | {
244 | System.out.println("------------------------------");
245 | for(int x = 0; x < lettersFive.length; x++)
246 | {
247 | if(lettersFive[x].contains(choice))
248 | {
249 | char reChoice = choice.charAt(0);
250 | if(lettersFive[x].charAt(position-1)==reChoice)
251 | {
252 | System.out.println(lettersFive[x]);
253 | }
254 | }
255 | }
256 | System.out.println("------------------------------");
257 | }
258 | else if(position==4)
259 | {
260 | System.out.println("------------------------------");
261 | for(int x = 0; x < lettersFive.length; x++)
262 | {
263 | if(lettersFive[x].contains(choice))
264 | {
265 | char reChoice = choice.charAt(0);
266 | if(lettersFive[x].charAt(position-1)==reChoice)
267 | {
268 | System.out.println(lettersFive[x]);
269 | }
270 | }
271 | }
272 | System.out.println("------------------------------");
273 | }
274 | else if(position==5)
275 | {
276 | System.out.println("------------------------------");
277 | for(int x = 0; x < lettersFive.length; x++)
278 | {
279 | if(lettersFive[x].contains(choice))
280 | {
281 | char reChoice = choice.charAt(0);
282 | if(lettersFive[x].charAt(position-1)==reChoice)
283 | {
284 | System.out.println(lettersFive[x]);
285 | }
286 | }
287 | }
288 | System.out.println("------------------------------");
289 | }
290 |
291 | //Updated Words
292 | Scanner kbReader2 = new Scanner(System.in);
293 | System.out.print("Hint: ");
294 | String choice2 = kbReader2.nextLine();
295 | System.out.print("Position: ");
296 | int position2 = kbReader2.nextInt();
297 |
298 | if(position==1)
299 | {
300 | System.out.println("------------------------------");
301 | for(int x = 0; x < lettersFive.length; x++)
302 | {
303 | if(lettersFive[x].contains(choice) && lettersFive[x].contains(choice2))
304 | {
305 | char reChoice = choice.charAt(0);
306 | char reChoice2 = choice2.charAt(0);
307 | if(lettersFive[x].charAt(position-1)==reChoice && lettersFive[x].charAt(position2-1)==reChoice2)
308 | {
309 | System.out.println(lettersFive[x]);
310 | }
311 | }
312 | }
313 | System.out.println("------------------------------");
314 | }
315 | else if(position==2)
316 | {
317 | System.out.println("------------------------------");
318 | for(int x = 0; x < lettersFive.length; x++)
319 | {
320 | if(lettersFive[x].contains(choice) && lettersFive[x].contains(choice2))
321 | {
322 | char reChoice = choice.charAt(0);
323 | char reChoice2 = choice2.charAt(0);
324 | if(lettersFive[x].charAt(position-1)==reChoice && lettersFive[x].charAt(position2-1)==reChoice2)
325 | {
326 | System.out.println(lettersFive[x]);
327 | }
328 | }
329 | }
330 | System.out.println("------------------------------");
331 | }
332 | else if(position==3)
333 | {
334 | System.out.println("------------------------------");
335 | for(int x = 0; x < lettersFive.length; x++)
336 | {
337 | if(lettersFive[x].contains(choice) && lettersFive[x].contains(choice2))
338 | {
339 | char reChoice = choice.charAt(0);
340 | char reChoice2 = choice2.charAt(0);
341 | if(lettersFive[x].charAt(position-1)==reChoice && lettersFive[x].charAt(position2-1)==reChoice2)
342 | {
343 | System.out.println(lettersFive[x]);
344 | }
345 | }
346 | }
347 | System.out.println("------------------------------");
348 | }
349 | else if(position==4)
350 | {
351 | System.out.println("------------------------------");
352 | for(int x = 0; x < lettersFive.length; x++)
353 | {
354 | if(lettersFive[x].contains(choice) && lettersFive[x].contains(choice2))
355 | {
356 | char reChoice = choice.charAt(0);
357 | char reChoice2 = choice2.charAt(0);
358 | if(lettersFive[x].charAt(position-1)==reChoice && lettersFive[x].charAt(position2-1)==reChoice2)
359 | {
360 | System.out.println(lettersFive[x]);
361 | }
362 | }
363 | }
364 | System.out.println("------------------------------");
365 | }
366 | else if(position==5)
367 | {
368 | System.out.println("------------------------------");
369 | for(int x = 0; x < lettersFive.length; x++)
370 | {
371 | if(lettersFive[x].contains(choice) && lettersFive[x].contains(choice2))
372 | {
373 | char reChoice = choice.charAt(0);
374 | char reChoice2 = choice2.charAt(0);
375 | if(lettersFive[x].charAt(position-1)==reChoice && lettersFive[x].charAt(position2-1)==reChoice2)
376 | {
377 | System.out.println(lettersFive[x]);
378 | }
379 | }
380 | }
381 | System.out.println("------------------------------");
382 | }
383 | }
384 |
385 | if((choice.equals("six"))||(choice.equals("6")))
386 | {
387 | //All Words
388 | System.out.println("--------------------");
389 | for(int x = 0; x < lettersSix.length; x++)
390 | {
391 | System.out.println(lettersSix[x]);
392 | }
393 | System.out.println("--------------------");
394 |
395 | //Updated Words
396 | System.out.print("Hint: ");
397 | choice = kbReader.nextLine();
398 | System.out.print("Position: ");
399 | int position = kbReader.nextInt();
400 |
401 | if(position==1)
402 | {
403 | System.out.println("------------------------------");
404 | for(int x = 0; x < lettersSix.length; x++)
405 | {
406 | if(lettersSix[x].contains(choice))
407 | {
408 | char reChoice = choice.charAt(0);
409 | if(lettersSix[x].charAt(position-1)==reChoice)
410 | {
411 | System.out.println(lettersSix[x]);
412 | }
413 | }
414 | }
415 | System.out.println("------------------------------");
416 | }
417 | else if(position==2)
418 | {
419 | System.out.println("------------------------------");
420 | for(int x = 0; x < lettersSix.length; x++)
421 | {
422 | if(lettersSix[x].contains(choice))
423 | {
424 | char reChoice = choice.charAt(0);
425 | if(lettersSix[x].charAt(position-1)==reChoice)
426 | {
427 | System.out.println(lettersSix[x]);
428 | }
429 | }
430 | }
431 | System.out.println("------------------------------");
432 | }
433 | else if(position==3)
434 | {
435 | System.out.println("------------------------------");
436 | for(int x = 0; x < lettersSix.length; x++)
437 | {
438 | if(lettersSix[x].contains(choice))
439 | {
440 | char reChoice = choice.charAt(0);
441 | if(lettersSix[x].charAt(position-1)==reChoice)
442 | {
443 | System.out.println(lettersSix[x]);
444 | }
445 | }
446 | }
447 | System.out.println("------------------------------");
448 | }
449 | else if(position==4)
450 | {
451 | System.out.println("------------------------------");
452 | for(int x = 0; x < lettersSix.length; x++)
453 | {
454 | if(lettersSix[x].contains(choice))
455 | {
456 | char reChoice = choice.charAt(0);
457 | if(lettersSix[x].charAt(position-1)==reChoice)
458 | {
459 | System.out.println(lettersSix[x]);
460 | }
461 | }
462 | }
463 | System.out.println("------------------------------");
464 | }
465 | else if(position==5)
466 | {
467 | System.out.println("------------------------------");
468 | for(int x = 0; x < lettersSix.length; x++)
469 | {
470 | if(lettersSix[x].contains(choice))
471 | {
472 | char reChoice = choice.charAt(0);
473 | if(lettersSix[x].charAt(position-1)==reChoice)
474 | {
475 | System.out.println(lettersSix[x]);
476 | }
477 | }
478 | }
479 | System.out.println("------------------------------");
480 | }
481 | else if(position==6)
482 | {
483 | System.out.println("------------------------------");
484 | for(int x = 0; x < lettersSix.length; x++)
485 | {
486 | if(lettersSix[x].contains(choice))
487 | {
488 | char reChoice = choice.charAt(0);
489 | if(lettersSix[x].charAt(position-1)==reChoice)
490 | {
491 | System.out.println(lettersSix[x]);
492 | }
493 | }
494 | }
495 | System.out.println("------------------------------");
496 | }
497 |
498 | //Updated Words
499 | Scanner kbReader2 = new Scanner(System.in);
500 | System.out.print("Hint: ");
501 | String choice2 = kbReader2.nextLine();
502 | System.out.print("Position: ");
503 | int position2 = kbReader2.nextInt();
504 |
505 | if(position==1)
506 | {
507 | System.out.println("------------------------------");
508 | for(int x = 0; x < lettersSix.length; x++)
509 | {
510 | if(lettersSix[x].contains(choice) && lettersSix[x].contains(choice2))
511 | {
512 | char reChoice = choice.charAt(0);
513 | char reChoice2 = choice2.charAt(0);
514 | if(lettersSix[x].charAt(position-1)==reChoice && lettersSix[x].charAt(position2-1)==reChoice2)
515 | {
516 | System.out.println(lettersSix[x]);
517 | }
518 | }
519 | }
520 | System.out.println("------------------------------");
521 | }
522 | else if(position==2)
523 | {
524 | System.out.println("------------------------------");
525 | for(int x = 0; x < lettersSix.length; x++)
526 | {
527 | if(lettersSix[x].contains(choice) && lettersSix[x].contains(choice2))
528 | {
529 | char reChoice = choice.charAt(0);
530 | char reChoice2 = choice2.charAt(0);
531 | if(lettersSix[x].charAt(position-1)==reChoice && lettersSix[x].charAt(position2-1)==reChoice2)
532 | {
533 | System.out.println(lettersSix[x]);
534 | }
535 | }
536 | }
537 | System.out.println("------------------------------");
538 | }
539 | else if(position==3)
540 | {
541 | System.out.println("------------------------------");
542 | for(int x = 0; x < lettersSix.length; x++)
543 | {
544 | if(lettersSix[x].contains(choice) && lettersSix[x].contains(choice2))
545 | {
546 | char reChoice = choice.charAt(0);
547 | char reChoice2 = choice2.charAt(0);
548 | if(lettersSix[x].charAt(position-1)==reChoice && lettersSix[x].charAt(position2-1)==reChoice2)
549 | {
550 | System.out.println(lettersSix[x]);
551 | }
552 | }
553 | }
554 | System.out.println("------------------------------");
555 | }
556 | else if(position==4)
557 | {
558 | System.out.println("------------------------------");
559 | for(int x = 0; x < lettersSix.length; x++)
560 | {
561 | if(lettersSix[x].contains(choice) && lettersSix[x].contains(choice2))
562 | {
563 | char reChoice = choice.charAt(0);
564 | char reChoice2 = choice2.charAt(0);
565 | if(lettersSix[x].charAt(position-1)==reChoice && lettersSix[x].charAt(position2-1)==reChoice2)
566 | {
567 | System.out.println(lettersSix[x]);
568 | }
569 | }
570 | }
571 | System.out.println("------------------------------");
572 | }
573 | else if(position==5)
574 | {
575 | System.out.println("------------------------------");
576 | for(int x = 0; x < lettersSix.length; x++)
577 | {
578 | if(lettersSix[x].contains(choice) && lettersSix[x].contains(choice2))
579 | {
580 | char reChoice = choice.charAt(0);
581 | char reChoice2 = choice2.charAt(0);
582 | if(lettersSix[x].charAt(position-1)==reChoice && lettersSix[x].charAt(position2-1)==reChoice2)
583 | {
584 | System.out.println(lettersSix[x]);
585 | }
586 | }
587 | }
588 | System.out.println("------------------------------");
589 | }
590 | else if(position==6)
591 | {
592 | System.out.println("------------------------------");
593 | for(int x = 0; x < lettersSix.length; x++)
594 | {
595 | if(lettersSix[x].contains(choice) && lettersSix[x].contains(choice2))
596 | {
597 | char reChoice = choice.charAt(0);
598 | char reChoice2 = choice2.charAt(0);
599 | if(lettersSix[x].charAt(position-1)==reChoice && lettersSix[x].charAt(position2-1)==reChoice2)
600 | {
601 | System.out.println(lettersSix[x]);
602 | }
603 | }
604 | }
605 | System.out.println("------------------------------");
606 | }
607 | }
608 |
609 | if((choice.equals("seven"))||(choice.equals("7")))
610 | {
611 | //All Words
612 | System.out.println("--------------------");
613 | for(int x = 0; x < lettersSeven.length; x++)
614 | {
615 | System.out.println(lettersSeven[x]);
616 | }
617 | System.out.println("--------------------");
618 |
619 | //Updated Words
620 | System.out.print("Hint: ");
621 | choice = kbReader.nextLine();
622 | System.out.print("Position: ");
623 | int position = kbReader.nextInt();
624 |
625 | if(position==1)
626 | {
627 | System.out.println("------------------------------");
628 | for(int x = 0; x < lettersSeven.length; x++)
629 | {
630 | if(lettersSeven[x].contains(choice))
631 | {
632 | char reChoice = choice.charAt(0);
633 | if(lettersSeven[x].charAt(position-1)==reChoice)
634 | {
635 | System.out.println(lettersSeven[x]);
636 | }
637 | }
638 | }
639 | System.out.println("------------------------------");
640 | }
641 | else if(position==2)
642 | {
643 | System.out.println("------------------------------");
644 | for(int x = 0; x < lettersSeven.length; x++)
645 | {
646 | if(lettersSeven[x].contains(choice))
647 | {
648 | char reChoice = choice.charAt(0);
649 | if(lettersSeven[x].charAt(position-1)==reChoice)
650 | {
651 | System.out.println(lettersSeven[x]);
652 | }
653 | }
654 | }
655 | System.out.println("------------------------------");
656 | }
657 | else if(position==3)
658 | {
659 | System.out.println("------------------------------");
660 | for(int x = 0; x < lettersSeven.length; x++)
661 | {
662 | if(lettersSeven[x].contains(choice))
663 | {
664 | char reChoice = choice.charAt(0);
665 | if(lettersSeven[x].charAt(position-1)==reChoice)
666 | {
667 | System.out.println(lettersSeven[x]);
668 | }
669 | }
670 | }
671 | System.out.println("------------------------------");
672 | }
673 | else if(position==4)
674 | {
675 | System.out.println("------------------------------");
676 | for(int x = 0; x < lettersSeven.length; x++)
677 | {
678 | if(lettersSeven[x].contains(choice))
679 | {
680 | char reChoice = choice.charAt(0);
681 | if(lettersSeven[x].charAt(position-1)==reChoice)
682 | {
683 | System.out.println(lettersSeven[x]);
684 | }
685 | }
686 | }
687 | System.out.println("------------------------------");
688 | }
689 | else if(position==5)
690 | {
691 | System.out.println("------------------------------");
692 | for(int x = 0; x < lettersSeven.length; x++)
693 | {
694 | if(lettersSeven[x].contains(choice))
695 | {
696 | char reChoice = choice.charAt(0);
697 | if(lettersSeven[x].charAt(position-1)==reChoice)
698 | {
699 | System.out.println(lettersSeven[x]);
700 | }
701 | }
702 | }
703 | System.out.println("------------------------------");
704 | }
705 | else if(position==6)
706 | {
707 | System.out.println("------------------------------");
708 | for(int x = 0; x < lettersSeven.length; x++)
709 | {
710 | if(lettersSeven[x].contains(choice))
711 | {
712 | char reChoice = choice.charAt(0);
713 | if(lettersSeven[x].charAt(position-1)==reChoice)
714 | {
715 | System.out.println(lettersSeven[x]);
716 | }
717 | }
718 | }
719 | System.out.println("------------------------------");
720 | }
721 | else if(position==7)
722 | {
723 | System.out.println("------------------------------");
724 | for(int x = 0; x < lettersSeven.length; x++)
725 | {
726 | if(lettersSeven[x].contains(choice))
727 | {
728 | char reChoice = choice.charAt(0);
729 | if(lettersSeven[x].charAt(position-1)==reChoice)
730 | {
731 | System.out.println(lettersSeven[x]);
732 | }
733 | }
734 | }
735 | System.out.println("------------------------------");
736 | }
737 |
738 | //Updated Words
739 | Scanner kbReader2 = new Scanner(System.in);
740 | System.out.print("Hint: ");
741 | String choice2 = kbReader2.nextLine();
742 | System.out.print("Position: ");
743 | int position2 = kbReader2.nextInt();
744 |
745 | if(position==1)
746 | {
747 | System.out.println("------------------------------");
748 | for(int x = 0; x < lettersSeven.length; x++)
749 | {
750 | if(lettersSeven[x].contains(choice) && lettersSeven[x].contains(choice2))
751 | {
752 | char reChoice = choice.charAt(0);
753 | char reChoice2 = choice2.charAt(0);
754 | if(lettersSeven[x].charAt(position-1)==reChoice && lettersSeven[x].charAt(position2-1)==reChoice2)
755 | {
756 | System.out.println(lettersSeven[x]);
757 | }
758 | }
759 | }
760 | System.out.println("------------------------------");
761 | }
762 | else if(position==2)
763 | {
764 | System.out.println("------------------------------");
765 | for(int x = 0; x < lettersSeven.length; x++)
766 | {
767 | if(lettersSeven[x].contains(choice) && lettersSeven[x].contains(choice2))
768 | {
769 | char reChoice = choice.charAt(0);
770 | char reChoice2 = choice2.charAt(0);
771 | if(lettersSeven[x].charAt(position-1)==reChoice && lettersSeven[x].charAt(position2-1)==reChoice2)
772 | {
773 | System.out.println(lettersSeven[x]);
774 | }
775 | }
776 | }
777 | System.out.println("------------------------------");
778 | }
779 | else if(position==3)
780 | {
781 | System.out.println("------------------------------");
782 | for(int x = 0; x < lettersSeven.length; x++)
783 | {
784 | if(lettersSeven[x].contains(choice) && lettersSeven[x].contains(choice2))
785 | {
786 | char reChoice = choice.charAt(0);
787 | char reChoice2 = choice2.charAt(0);
788 | if(lettersSeven[x].charAt(position-1)==reChoice && lettersSeven[x].charAt(position2-1)==reChoice2)
789 | {
790 | System.out.println(lettersSeven[x]);
791 | }
792 | }
793 | }
794 | System.out.println("------------------------------");
795 | }
796 | else if(position==4)
797 | {
798 | System.out.println("------------------------------");
799 | for(int x = 0; x < lettersSeven.length; x++)
800 | {
801 | if(lettersSeven[x].contains(choice) && lettersSeven[x].contains(choice2))
802 | {
803 | char reChoice = choice.charAt(0);
804 | char reChoice2 = choice2.charAt(0);
805 | if(lettersSeven[x].charAt(position-1)==reChoice && lettersSeven[x].charAt(position2-1)==reChoice2)
806 | {
807 | System.out.println(lettersSeven[x]);
808 | }
809 | }
810 | }
811 | System.out.println("------------------------------");
812 | }
813 | else if(position==5)
814 | {
815 | System.out.println("------------------------------");
816 | for(int x = 0; x < lettersSeven.length; x++)
817 | {
818 | if(lettersSeven[x].contains(choice) && lettersSeven[x].contains(choice2))
819 | {
820 | char reChoice = choice.charAt(0);
821 | char reChoice2 = choice2.charAt(0);
822 | if(lettersSeven[x].charAt(position-1)==reChoice && lettersSeven[x].charAt(position2-1)==reChoice2)
823 | {
824 | System.out.println(lettersSeven[x]);
825 | }
826 | }
827 | }
828 | System.out.println("------------------------------");
829 | }
830 | else if(position==6)
831 | {
832 | System.out.println("------------------------------");
833 | for(int x = 0; x < lettersSeven.length; x++)
834 | {
835 | if(lettersSeven[x].contains(choice) && lettersSeven[x].contains(choice2))
836 | {
837 | char reChoice = choice.charAt(0);
838 | char reChoice2 = choice2.charAt(0);
839 | if(lettersSeven[x].charAt(position-1)==reChoice && lettersSeven[x].charAt(position2-1)==reChoice2)
840 | {
841 | System.out.println(lettersSeven[x]);
842 | }
843 | }
844 | }
845 | System.out.println("------------------------------");
846 | }
847 | else if(position==7)
848 | {
849 | System.out.println("------------------------------");
850 | for(int x = 0; x < lettersSeven.length; x++)
851 | {
852 | if(lettersSeven[x].contains(choice) && lettersSeven[x].contains(choice2))
853 | {
854 | char reChoice = choice.charAt(0);
855 | char reChoice2 = choice2.charAt(0);
856 | if(lettersSeven[x].charAt(position-1)==reChoice && lettersSeven[x].charAt(position2-1)==reChoice2)
857 | {
858 | System.out.println(lettersSeven[x]);
859 | }
860 | }
861 | }
862 | System.out.println("------------------------------");
863 | }
864 | }
865 |
866 | if((choice.equals("eight"))||(choice.equals("8")))
867 | {
868 | //All Words
869 | System.out.println("--------------------");
870 | for(int x = 0; x < lettersEight.length; x++)
871 | {
872 | System.out.println(lettersEight[x]);
873 | }
874 | System.out.println("--------------------");
875 |
876 | //Updated Words
877 | System.out.print("Hint: ");
878 | choice = kbReader.nextLine();
879 | System.out.print("Position: ");
880 | int position = kbReader.nextInt();
881 |
882 | if(position==1)
883 | {
884 | System.out.println("------------------------------");
885 | for(int x = 0; x < lettersEight.length; x++)
886 | {
887 | if(lettersEight[x].contains(choice))
888 | {
889 | char reChoice = choice.charAt(0);
890 | if(lettersEight[x].charAt(position-1)==reChoice)
891 | {
892 | System.out.println(lettersEight[x]);
893 | }
894 | }
895 | }
896 | System.out.println("------------------------------");
897 | }
898 | else if(position==2)
899 | {
900 | System.out.println("------------------------------");
901 | for(int x = 0; x < lettersEight.length; x++)
902 | {
903 | if(lettersEight[x].contains(choice))
904 | {
905 | char reChoice = choice.charAt(0);
906 | if(lettersEight[x].charAt(position-1)==reChoice)
907 | {
908 | System.out.println(lettersEight[x]);
909 | }
910 | }
911 | }
912 | System.out.println("------------------------------");
913 | }
914 | else if(position==3)
915 | {
916 | System.out.println("------------------------------");
917 | for(int x = 0; x < lettersEight.length; x++)
918 | {
919 | if(lettersEight[x].contains(choice))
920 | {
921 | char reChoice = choice.charAt(0);
922 | if(lettersEight[x].charAt(position-1)==reChoice)
923 | {
924 | System.out.println(lettersEight[x]);
925 | }
926 | }
927 | }
928 | System.out.println("------------------------------");
929 | }
930 | else if(position==4)
931 | {
932 | System.out.println("------------------------------");
933 | for(int x = 0; x < lettersEight.length; x++)
934 | {
935 | if(lettersEight[x].contains(choice))
936 | {
937 | char reChoice = choice.charAt(0);
938 | if(lettersEight[x].charAt(position-1)==reChoice)
939 | {
940 | System.out.println(lettersEight[x]);
941 | }
942 | }
943 | }
944 | System.out.println("------------------------------");
945 | }
946 | else if(position==5)
947 | {
948 | System.out.println("------------------------------");
949 | for(int x = 0; x < lettersEight.length; x++)
950 | {
951 | if(lettersEight[x].contains(choice))
952 | {
953 | char reChoice = choice.charAt(0);
954 | if(lettersEight[x].charAt(position-1)==reChoice)
955 | {
956 | System.out.println(lettersEight[x]);
957 | }
958 | }
959 | }
960 | System.out.println("------------------------------");
961 | }
962 | else if(position==6)
963 | {
964 | System.out.println("------------------------------");
965 | for(int x = 0; x < lettersEight.length; x++)
966 | {
967 | if(lettersEight[x].contains(choice))
968 | {
969 | char reChoice = choice.charAt(0);
970 | if(lettersEight[x].charAt(position-1)==reChoice)
971 | {
972 | System.out.println(lettersEight[x]);
973 | }
974 | }
975 | }
976 | System.out.println("------------------------------");
977 | }
978 | else if(position==7)
979 | {
980 | System.out.println("------------------------------");
981 | for(int x = 0; x < lettersEight.length; x++)
982 | {
983 | if(lettersEight[x].contains(choice))
984 | {
985 | char reChoice = choice.charAt(0);
986 | if(lettersEight[x].charAt(position-1)==reChoice)
987 | {
988 | System.out.println(lettersEight[x]);
989 | }
990 | }
991 | }
992 | System.out.println("------------------------------");
993 | }
994 | else if(position==8)
995 | {
996 | System.out.println("------------------------------");
997 | for(int x = 0; x < lettersEight.length; x++)
998 | {
999 | if(lettersEight[x].contains(choice))
1000 | {
1001 | char reChoice = choice.charAt(0);
1002 | if(lettersEight[x].charAt(position-1)==reChoice)
1003 | {
1004 | System.out.println(lettersEight[x]);
1005 | }
1006 | }
1007 | }
1008 | System.out.println("------------------------------");
1009 | }
1010 | }
1011 |
1012 | if((choice.equals("nine"))||(choice.equals("9")))
1013 | {
1014 | //All Words
1015 | System.out.println("--------------------");
1016 | for(int x = 0; x < lettersNine.length; x++)
1017 | {
1018 | System.out.println(lettersNine[x]);
1019 | }
1020 | System.out.println("--------------------");
1021 |
1022 | //Updated Words
1023 | System.out.print("Hint: ");
1024 | choice = kbReader.nextLine();
1025 | System.out.print("Position: ");
1026 | int position = kbReader.nextInt();
1027 |
1028 | if(position==1)
1029 | {
1030 | System.out.println("------------------------------");
1031 | for(int x = 0; x < lettersNine.length; x++)
1032 | {
1033 | if(lettersNine[x].contains(choice))
1034 | {
1035 | char reChoice = choice.charAt(0);
1036 | if(lettersNine[x].charAt(position-1)==reChoice)
1037 | {
1038 | System.out.println(lettersNine[x]);
1039 | }
1040 | }
1041 | }
1042 | System.out.println("------------------------------");
1043 | }
1044 | else if(position==2)
1045 | {
1046 | System.out.println("------------------------------");
1047 | for(int x = 0; x < lettersNine.length; x++)
1048 | {
1049 | if(lettersNine[x].contains(choice))
1050 | {
1051 | char reChoice = choice.charAt(0);
1052 | if(lettersNine[x].charAt(position-1)==reChoice)
1053 | {
1054 | System.out.println(lettersNine[x]);
1055 | }
1056 | }
1057 | }
1058 | System.out.println("------------------------------");
1059 | }
1060 | else if(position==3)
1061 | {
1062 | System.out.println("------------------------------");
1063 | for(int x = 0; x < lettersNine.length; x++)
1064 | {
1065 | if(lettersNine[x].contains(choice))
1066 | {
1067 | char reChoice = choice.charAt(0);
1068 | if(lettersNine[x].charAt(position-1)==reChoice)
1069 | {
1070 | System.out.println(lettersNine[x]);
1071 | }
1072 | }
1073 | }
1074 | System.out.println("------------------------------");
1075 | }
1076 | else if(position==4)
1077 | {
1078 | System.out.println("------------------------------");
1079 | for(int x = 0; x < lettersNine.length; x++)
1080 | {
1081 | if(lettersNine[x].contains(choice))
1082 | {
1083 | char reChoice = choice.charAt(0);
1084 | if(lettersNine[x].charAt(position-1)==reChoice)
1085 | {
1086 | System.out.println(lettersNine[x]);
1087 | }
1088 | }
1089 | }
1090 | System.out.println("------------------------------");
1091 | }
1092 | else if(position==5)
1093 | {
1094 | System.out.println("------------------------------");
1095 | for(int x = 0; x < lettersNine.length; x++)
1096 | {
1097 | if(lettersNine[x].contains(choice))
1098 | {
1099 | char reChoice = choice.charAt(0);
1100 | if(lettersNine[x].charAt(position-1)==reChoice)
1101 | {
1102 | System.out.println(lettersNine[x]);
1103 | }
1104 | }
1105 | }
1106 | System.out.println("------------------------------");
1107 | }
1108 | else if(position==6)
1109 | {
1110 | System.out.println("------------------------------");
1111 | for(int x = 0; x < lettersNine.length; x++)
1112 | {
1113 | if(lettersNine[x].contains(choice))
1114 | {
1115 | char reChoice = choice.charAt(0);
1116 | if(lettersNine[x].charAt(position-1)==reChoice)
1117 | {
1118 | System.out.println(lettersNine[x]);
1119 | }
1120 | }
1121 | }
1122 | System.out.println("------------------------------");
1123 | }
1124 | else if(position==7)
1125 | {
1126 | System.out.println("------------------------------");
1127 | for(int x = 0; x < lettersNine.length; x++)
1128 | {
1129 | if(lettersNine[x].contains(choice))
1130 | {
1131 | char reChoice = choice.charAt(0);
1132 | if(lettersNine[x].charAt(position-1)==reChoice)
1133 | {
1134 | System.out.println(lettersNine[x]);
1135 | }
1136 | }
1137 | }
1138 | System.out.println("------------------------------");
1139 | }
1140 | else if(position==8)
1141 | {
1142 | System.out.println("------------------------------");
1143 | for(int x = 0; x < lettersNine.length; x++)
1144 | {
1145 | if(lettersNine[x].contains(choice))
1146 | {
1147 | char reChoice = choice.charAt(0);
1148 | if(lettersNine[x].charAt(position-1)==reChoice)
1149 | {
1150 | System.out.println(lettersNine[x]);
1151 | }
1152 | }
1153 | }
1154 | System.out.println("------------------------------");
1155 | }
1156 | else if(position==9)
1157 | {
1158 | System.out.println("------------------------------");
1159 | for(int x = 0; x < lettersNine.length; x++)
1160 | {
1161 | if(lettersNine[x].contains(choice))
1162 | {
1163 | char reChoice = choice.charAt(0);
1164 | if(lettersNine[x].charAt(position-1)==reChoice)
1165 | {
1166 | System.out.println(lettersNine[x]);
1167 | }
1168 | }
1169 | }
1170 | System.out.println("------------------------------");
1171 | }
1172 | }
1173 |
1174 | if((choice.equals("ten"))||(choice.equals("10")))
1175 | {
1176 | System.out.println("--------------------");
1177 | for(int x = 0; x < lettersTen.length; x++)
1178 | {
1179 | System.out.println(lettersTen[x]);
1180 | }
1181 | System.out.println("--------------------");
1182 | }
1183 |
1184 | if((choice.equals("eleven"))||(choice.equals("11")))
1185 | {
1186 | System.out.println("--------------------");
1187 | for(int x = 0; x < lettersEleven.length; x++)
1188 | {
1189 | System.out.println(lettersEleven[x]);
1190 | }
1191 | System.out.println("--------------------");
1192 | }
1193 |
1194 | if(choice.equals("two words")||choice.equals("2 words"))
1195 | {
1196 | //All Words
1197 | System.out.println("--------------------");
1198 | for(int x = 0; x < wordsTwo.length; x++)
1199 | {
1200 | System.out.println(wordsTwo[x]);
1201 | }
1202 | System.out.println("--------------------");
1203 |
1204 | //Updated Words
1205 | System.out.print("Hint: ");
1206 | choice = kbReader.nextLine();
1207 | System.out.print("Position: ");
1208 | int position = kbReader.nextInt();
1209 |
1210 | if(position==1)
1211 | {
1212 | System.out.println("------------------------------");
1213 | for(int x = 0; x < wordsTwo.length; x++)
1214 | {
1215 | if(wordsTwo[x].contains(choice))
1216 | {
1217 | char reChoice = choice.charAt(0);
1218 | if(wordsTwo[x].charAt(position-1)==reChoice)
1219 | {
1220 | System.out.println(wordsTwo[x]);
1221 | }
1222 | }
1223 | }
1224 | System.out.println("------------------------------");
1225 | }
1226 | else if(position==2)
1227 | {
1228 | System.out.println("------------------------------");
1229 | for(int x = 0; x < wordsTwo.length; x++)
1230 | {
1231 | if(wordsTwo[x].contains(choice))
1232 | {
1233 | char reChoice = choice.charAt(0);
1234 | if(wordsTwo[x].charAt(position-1)==reChoice)
1235 | {
1236 | System.out.println(wordsTwo[x]);
1237 | }
1238 | }
1239 | }
1240 | System.out.println("------------------------------");
1241 | }
1242 | else if(position==3)
1243 | {
1244 | System.out.println("------------------------------");
1245 | for(int x = 0; x < wordsTwo.length; x++)
1246 | {
1247 | if(wordsTwo[x].contains(choice))
1248 | {
1249 | char reChoice = choice.charAt(0);
1250 | if(wordsTwo[x].charAt(position-1)==reChoice)
1251 | {
1252 | System.out.println(wordsTwo[x]);
1253 | }
1254 | }
1255 | }
1256 | System.out.println("------------------------------");
1257 | }
1258 | else if(position==4)
1259 | {
1260 | System.out.println("------------------------------");
1261 | for(int x = 0; x < wordsTwo.length; x++)
1262 | {
1263 | if(wordsTwo[x].contains(choice))
1264 | {
1265 | char reChoice = choice.charAt(0);
1266 | if(wordsTwo[x].charAt(position-1)==reChoice)
1267 | {
1268 | System.out.println(wordsTwo[x]);
1269 | }
1270 | }
1271 | }
1272 | System.out.println("------------------------------");
1273 | }
1274 | else if(position==5)
1275 | {
1276 | System.out.println("------------------------------");
1277 | for(int x = 0; x < wordsTwo.length; x++)
1278 | {
1279 | if(wordsTwo[x].contains(choice))
1280 | {
1281 | char reChoice = choice.charAt(0);
1282 | if(wordsTwo[x].charAt(position-1)==reChoice)
1283 | {
1284 | System.out.println(wordsTwo[x]);
1285 | }
1286 | }
1287 | }
1288 | System.out.println("------------------------------");
1289 | }
1290 | else if(position==6)
1291 | {
1292 | System.out.println("------------------------------");
1293 | for(int x = 0; x < wordsTwo.length; x++)
1294 | {
1295 | if(wordsTwo[x].contains(choice))
1296 | {
1297 | char reChoice = choice.charAt(0);
1298 | if(wordsTwo[x].charAt(position-1)==reChoice)
1299 | {
1300 | System.out.println(wordsTwo[x]);
1301 | }
1302 | }
1303 | }
1304 | System.out.println("------------------------------");
1305 | }
1306 | else if(position==7)
1307 | {
1308 | System.out.println("------------------------------");
1309 | for(int x = 0; x < wordsTwo.length; x++)
1310 | {
1311 | if(wordsTwo[x].contains(choice))
1312 | {
1313 | char reChoice = choice.charAt(0);
1314 | if(wordsTwo[x].charAt(position-1)==reChoice)
1315 | {
1316 | System.out.println(wordsTwo[x]);
1317 | }
1318 | }
1319 | }
1320 | System.out.println("------------------------------");
1321 | }
1322 | else if(position==8)
1323 | {
1324 | System.out.println("------------------------------");
1325 | for(int x = 0; x < wordsTwo.length; x++)
1326 | {
1327 | if(wordsTwo[x].contains(choice))
1328 | {
1329 | char reChoice = choice.charAt(0);
1330 | if(wordsTwo[x].charAt(position-1)==reChoice)
1331 | {
1332 | System.out.println(wordsTwo[x]);
1333 | }
1334 | }
1335 | }
1336 | System.out.println("------------------------------");
1337 | }
1338 | else if(position==9)
1339 | {
1340 | System.out.println("------------------------------");
1341 | for(int x = 0; x < wordsTwo.length; x++)
1342 | {
1343 | if(wordsTwo[x].contains(choice))
1344 | {
1345 | char reChoice = choice.charAt(0);
1346 | if(wordsTwo[x].charAt(position-1)==reChoice)
1347 | {
1348 | System.out.println(wordsTwo[x]);
1349 | }
1350 | }
1351 | }
1352 | System.out.println("------------------------------");
1353 | }
1354 | else if(position==10)
1355 | {
1356 | System.out.println("------------------------------");
1357 | for(int x = 0; x < wordsTwo.length; x++)
1358 | {
1359 | if(wordsTwo[x].contains(choice))
1360 | {
1361 | char reChoice = choice.charAt(0);
1362 | if(wordsTwo[x].charAt(position-1)==reChoice)
1363 | {
1364 | System.out.println(wordsTwo[x]);
1365 | }
1366 | }
1367 | }
1368 | System.out.println("------------------------------");
1369 | }
1370 | else if(position==11)
1371 | {
1372 | System.out.println("------------------------------");
1373 | for(int x = 0; x < wordsTwo.length; x++)
1374 | {
1375 | if(wordsTwo[x].contains(choice))
1376 | {
1377 | char reChoice = choice.charAt(0);
1378 | if(wordsTwo[x].charAt(position-1)==reChoice)
1379 | {
1380 | System.out.println(wordsTwo[x]);
1381 | }
1382 | }
1383 | }
1384 | System.out.println("------------------------------");
1385 | }
1386 | else if(position==12)
1387 | {
1388 | System.out.println("------------------------------");
1389 | for(int x = 0; x < wordsTwo.length; x++)
1390 | {
1391 | if(wordsTwo[x].contains(choice))
1392 | {
1393 | char reChoice = choice.charAt(0);
1394 | if(wordsTwo[x].charAt(position-1)==reChoice)
1395 | {
1396 | System.out.println(wordsTwo[x]);
1397 | }
1398 | }
1399 | }
1400 | System.out.println("------------------------------");
1401 | }
1402 | else if(position==13)
1403 | {
1404 | System.out.println("------------------------------");
1405 | for(int x = 0; x < wordsTwo.length; x++)
1406 | {
1407 | if(wordsTwo[x].contains(choice))
1408 | {
1409 | char reChoice = choice.charAt(0);
1410 | if(wordsTwo[x].charAt(position-1)==reChoice)
1411 | {
1412 | System.out.println(wordsTwo[x]);
1413 | }
1414 | }
1415 | }
1416 | System.out.println("------------------------------");
1417 | }
1418 | else if(position==14)
1419 | {
1420 | System.out.println("------------------------------");
1421 | for(int x = 0; x < wordsTwo.length; x++)
1422 | {
1423 | if(wordsTwo[x].contains(choice))
1424 | {
1425 | char reChoice = choice.charAt(0);
1426 | if(wordsTwo[x].charAt(position-1)==reChoice)
1427 | {
1428 | System.out.println(wordsTwo[x]);
1429 | }
1430 | }
1431 | }
1432 | System.out.println("------------------------------");
1433 | }
1434 | }
1435 |
1436 | if((choice.equals("three words"))||(choice.equals("3 words")))
1437 | {
1438 | System.out.println("--------------------");
1439 | for(int x = 0; x < wordsThree.length; x++)
1440 | {
1441 | System.out.println(wordsThree[x]);
1442 | }
1443 | System.out.println("--------------------");
1444 | }
1445 | }
1446 | }
1447 |
--------------------------------------------------------------------------------