Othello/src/othello/Main.java

29 lines
543 B
Java
Raw Normal View History

2021-01-27 12:24:17 +01:00
package othello;
2021-01-27 18:27:28 +01:00
import java.util.ArrayList;
2021-01-27 12:24:17 +01:00
public class Main {
public static void main(String[] args) {
int p1 = 1, p2 = 2;
int[][] board = initialize(p1, p2);
State game = new State(board, p1, p2);
while(!game.isOver()) {
int player = game.getCurrentPlayer();
ArrayList<Pair<Point, Point>> moves = game.getMove(player);
2021-02-10 12:19:22 +01:00
}
2021-01-27 12:24:17 +01:00
}
public static int[][] initialize(int p1, int p2){
int[][] board = new int[7][7];
2021-01-27 12:24:17 +01:00
board[0][0] = p2;
board[0][6] = p1;
board[6][0] = p1;
board[6][6] = p2;
return board;
}
}