Merge branch 'master' of https://gitlab.isima.fr/audorival/gomoku
This commit is contained in:
@@ -149,6 +149,7 @@ public class GomokuGame {
|
||||
}
|
||||
System.out.println(board.countMax(board.countAlignedCells(currentPlay)));
|
||||
if (NB_CELL_PLAY <= board.countMax(board.countAlignedCells(currentPlay))) {
|
||||
System.out.println("Le joueur " + this.currentPlayer + " a gagné !");
|
||||
// this.renderer.updateStatus("Le joueur " + this.currentPlayer + "a gagné !");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -54,4 +54,9 @@ abstract class Player{
|
||||
* @return The cell of the move played.
|
||||
*/
|
||||
public abstract GomokuCell chooseMove(GomokuBoard board);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return this.getName();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user