This commit is contained in:
Aubin DORIVAL
2025-03-31 12:01:51 +02:00
parent 0867ea36c1
commit 7efba643b5
29 changed files with 1966 additions and 133 deletions

View File

@@ -17,7 +17,7 @@ public class GomokuAI extends Player{
//------------------Methods--------------------------
/**
* Return the coordinate of the move played by the Gomoku AI.
* @param Board The actual Gomoku board.
* @param board The actual Gomoku board.
* @return The Cell of the move played.
*/
public GomokuCell chooseMove(GomokuBoard board){
@@ -44,7 +44,7 @@ public class GomokuAI extends Player{
/**
* Return a Map of all Cell playable, and their point.
* @param Board The actual Gomoku board.
* @param board The actual Gomoku board.
* @return the Map of all Cell playable, and their point.
*/
public Map<GomokuCell, Integer> GetCellPoint(GomokuBoard board){
@@ -74,4 +74,4 @@ public class GomokuAI extends Player{
return map;
}
}
}

View File

@@ -10,7 +10,7 @@ public class Human extends Player{
//------------------Methods--------------------------
/**
* Return the coordinate of the move played by the player.
* @param Board The actual Gomoku board.
* @param board The actual Gomoku board.
* @return The cell of the move played.
*/
public GomokuCell chooseMove(GomokuBoard board){
@@ -62,4 +62,4 @@ public class Human extends Player{
return board.get(x,y);
}
}
}

View File

@@ -47,8 +47,8 @@ abstract class Player{
/**
* Return the coordinate of the move played by the player.
* @param Board The actual Gomoku board.
* @param board The actual Gomoku board.
* @return The cell of the move played.
*/
public abstract GomokuCell chooseMove(GomokuBoard board);
}
}