Skip to content
Snippets Groups Projects
Commit 5442e9c7 authored by Goik Martin's avatar Goik Martin
Browse files

Prettyfying

parent 6f986fb0
Branches
No related tags found
No related merge requests found
...@@ -16,7 +16,6 @@ public class TicTacToe { ...@@ -16,7 +16,6 @@ public class TicTacToe {
final Scanner scan = new Scanner(System.in); final Scanner scan = new Scanner(System.in);
Board.printNumberingHint();
System.out.println("\n\n"); System.out.println("\n\n");
System.out.println("Who is going to start? " + System.out.println("Who is going to start? " +
...@@ -51,14 +50,13 @@ public class TicTacToe { ...@@ -51,14 +50,13 @@ public class TicTacToe {
} while (null == (winner = board.evaluateWinner()) && !board.allMovesFinished()); } while (null == (winner = board.evaluateWinner()) && !board.allMovesFinished());
if (null == winner) { if (null == winner) {
System.out.println("\n\nGame over: draw"); System.out.println("\n\nGame over: Draw");
} else { } else {
switch(winner) { switch(winner) {
case YOU: System.out.println("\n\nCongratulations, you won!");break; case YOU: System.out.println("\n\nCongratulations, you won!");break;
case COM: System.out.println("\n\nSorry, you lost!");break; case COM: System.out.println("\n\nSorry, you lost!");break;
} }
} }
scan.close(); scan.close();
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment