Merge branch 'malte-ai' into malte-alternative

This commit is contained in:
Malte Tammena 2017-10-23 12:38:57 +02:00
commit 5016d07571
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("+-+-+-+-+-+-+-+");
for (int i = 0; i < board.length; i++) {
System.out.print("|" + i);
}
System.out.println("|");
}
public static boolean checkWin(int[][] board, int player){

View file

@ -28,7 +28,7 @@ public class Human implements Player {
}
int choice = -1;
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();
}
return choice;