Merge branch 'master' of
https://gitarero.ecam.fr/keshini.nistar/OOP_Groupe_1A3_Project.git
This commit is contained in:
commit
0449c8220a
|
|
@ -1,5 +1,7 @@
|
|||
package backend;
|
||||
|
||||
|
||||
|
||||
public class AutoPlayer {
|
||||
|
||||
|
||||
|
|
@ -9,9 +11,13 @@ public class AutoPlayer {
|
|||
* @return
|
||||
*/
|
||||
public Move computeBestMove(Board board) {
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -376,18 +376,6 @@ return false; }
|
|||
this.highlightedSquares.clear();
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void updateTurnLabel() {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
private void repaint() {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
/*public Board(Board board) {
|
||||
//TODO
|
||||
|
||||
|
|
@ -401,4 +389,6 @@ return false; }
|
|||
public Piece[][] getBoardArray() {
|
||||
return board;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -49,7 +49,7 @@ public class Game extends Thread {
|
|||
|
||||
private void aiPlayerTurn() {
|
||||
if(isAITurn()) {
|
||||
board.playMove(aiPlayer.computeBestMove(new Board(board)));
|
||||
board.playMove(aiPlayer.computeBestMove(board));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -117,3 +117,10 @@ public class Game extends Thread {
|
|||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -245,6 +245,8 @@ public class MovePiece {
|
|||
}return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//bishop movement simulate
|
||||
public boolean moveBishopSimulate(int x, int y) {
|
||||
int currentX = piece.getX();
|
||||
|
|
|
|||
|
|
@ -50,4 +50,9 @@ public class Piece {
|
|||
didMove=value;
|
||||
|
||||
}
|
||||
public void setPosition(int x, int y) {
|
||||
this.x_coor = x;
|
||||
this.y_coor = y;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue