Changed output format

This commit is contained in:
Malte Tammena 2017-10-23 11:57:15 +02:00
parent 4d3b14c3cc
commit 5d4815b73b
2 changed files with 6 additions and 2 deletions

View file

@ -301,7 +301,11 @@ public class Game {
} }
System.out.println("|"); System.out.println("|");
} }
System.out.println(); System.out.println("+-+-+-+-+-+-+-+");
for (int i = 0; i < board.length; i++) {
System.out.print("|" + i);
}
System.out.println("|");
} }
public static boolean checkWin(int[][] board, int player){ public static boolean checkWin(int[][] board, int player){

View file

@ -28,7 +28,7 @@ public class Human implements Player {
} }
int choice = -1; int choice = -1;
while (!options.contains(new Integer(choice))) { while (!options.contains(new Integer(choice))) {
System.out.print("Choose a move from " + options + ": "); System.out.println("Choose a move from " + options + ": ");
choice = sc.nextInt(); choice = sc.nextInt();
} }
return choice; return choice;