Move class, and start of auto player

This commit is contained in:
gabrielshiraishi 2025-04-17 11:41:05 +02:00
parent efbb2bc654
commit 4f03815ea7
3 changed files with 18 additions and 3 deletions

View File

@ -10,6 +10,8 @@ public class AutoPlayer {
*/
public Move computeBestMove(Board board) {
return null;
}

View File

@ -14,6 +14,7 @@ public class Board {
public boolean turnColor;
public ArrayList<ArrayList<Boolean>> possibleMoves = new ArrayList<>();
public LinkedList<BoardHistory> boardHistory = new LinkedList<>();
public Board(int colNum, int lineNum) {
this.width = colNum;
this.height = lineNum;

View File

@ -1,6 +1,18 @@
package backend;
import java.util.ArrayList;
public class Move {
private int x;
private int y;
public Move(int x, int y) {
this.x=x;
this.y=y;
}