File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed
app/src/main/java/hexlet/code Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ public static void gameLogic() {
3030 System .out .println ("Your answer: " + answer );
3131 System .out .println ("'" + answer + "'" + "is wrong answer ;(. "
3232 + "Correct answer was" + "'" + result + "'" );
33+ System .out .println ("Let's try again, " + Engine .userName + "!" );
3334 break ;
3435 }
3536 if (Engine .questionCounter == 3 ) {
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ public static void gameLogic() {
2323 System .out .println ("Your answer: " + answer );
2424 System .out .println ("'" + answer + "'" + "is wrong answer ;(. "
2525 + "Correct answer was" + "'" + result + "'" );
26+ System .out .println ("Let's try again, " + Engine .userName + "!" );
2627 break ;
2728 }
2829 if (Engine .questionCounter == 3 ) {
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public static void gameLogic() {
2727 System .out .println ("Correct!\n " );
2828 Engine .questionCounter ++;
2929 } else {
30- System .out .println ("This is not correct answer,try again! \n " );
30+ System .out .println ("Let's try again, " + Engine . userName + "! " );
3131 break ;
3232 }
3333 if (Engine .questionCounter == 3 ) {
You can’t perform that action at this time.
0 commit comments