This commit is contained in:
Cyprien111
2025-03-31 08:33:58 +02:00
parent a00cc26e59
commit cfb05f6c11
3 changed files with 53 additions and 4 deletions

View File

@@ -2,10 +2,22 @@ import java.util.List;
import java.util.Random;
public class GomokuAI{
/**
* This class is an extends of the class Player, this allows the GomokuAI to choose his move.
*/
/** The random initialization */
Random random = new Random();
/** The difficulty of the GomokuAI */
int difficulty = 0;
//------------------Methods--------------------------
/**
* Return the coordinate of the move played by the Gomoku AI.
* @param Board The actual Gomoku board.
* @return The coordinate of the move played.
*/
public Coordinate chooseMove(GomokuBoard board){