Othello/src/othello/State.java

39 lines
575 B
Java
Raw Normal View History

2021-01-27 11:49:49 +01:00
package othello;
public class State {
2021-01-27 12:06:32 +01:00
private int[][] plateau;
2021-01-27 11:49:49 +01:00
2021-01-27 12:24:17 +01:00
private String[][] board;
private String player1;
private String player2;
private String currentPlayer;
public State(String[][] board, String p1, String p2) {
this.board = board;
this.player1 = p1;
this.player2 = p2;
currentPlayer = p1;
}
2021-01-27 11:49:49 +01:00
public boolean isOver() {
return false;
}
public void getMove(String player) {
}
public int getScore(String player) {
return 0;
}
public void play(int move) {
}
2021-01-27 12:24:17 +01:00
public String getCurrentPlayer() {
return currentPlayer;
}
2021-01-27 11:49:49 +01:00
}