Skip to content

Commit f7e7f2e

Browse files
committed
formatting
1 parent af11735 commit f7e7f2e

File tree

5 files changed

+14
-18
lines changed

5 files changed

+14
-18
lines changed

.idea/workspace.xml

Lines changed: 8 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
88 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

src/GuessRealWord.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public void WordGuessReal(int numGames){
1919
strUpper = wordGameReal.getStrUpper();
2020
//System.out.println(strLower); System.out.println(strUpper);
2121
elapsedTime = wordGameReal.getElapsedTime();
22-
if (elapsedTime >= 10000) { // waits for specified time in ms (1000ms = 1s)
22+
if (elapsedTime >= 5000) { // waits for specified time in ms (1000ms = 1s)
2323
System.out.println("TOO SLOW!!! You answered in: " + elapsedTime / 1000 + " seconds\n");
2424
} else if (strLower.equals(randWord) || strUpper.equals(randWord)) {
2525
// NOTE: have to use .equals instead of == since == will see if it refers to the same object and not the same value
@@ -35,9 +35,11 @@ public void WordGuessReal(int numGames){
3535
String c2 = correctionImproved.getCode();
3636

3737
if(correction.getFinalCost() <= 1 || c1.equals(c2)){ // if you are one letter off
38-
System.out.println("Did you mean: " + randWord + "\n");
38+
System.out.println("Did you mean: " + randWord);
39+
System.out.println("You answered in: " + elapsedTime / 1000 + " seconds\n");
3940
}else{
40-
System.out.println("WRONG! \n");
41+
System.out.println("WRONG! ");
42+
System.out.println("You answered in: " + elapsedTime / 1000 + " seconds\n");
4143
}
4244
}
4345
}

src/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public static void main(String[] args) {
1414
// SoundEx test = new SoundEx();
1515
// test.Encode("Lee");
1616
// System.out.println(test.getCode());
17-
17+
1818
} // end main
1919

2020
} // end main class

0 commit comments

Comments
 (0)