Merge branch 'malte-ai' into malte-alternative
This commit is contained in:
commit
5016d07571
|
@ -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){
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue