Move class, and start of auto player
This commit is contained in:
parent
efbb2bc654
commit
4f03815ea7
|
|
@ -10,6 +10,8 @@ public class AutoPlayer {
|
|||
*/
|
||||
public Move computeBestMove(Board board) {
|
||||
|
||||
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue