Class GomokuAI
java.lang.Object
Player
GomokuAI
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) intThe difficulty of the GomokuAI(package private) RandomThe random initialization -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchooseMove(GomokuBoard board) Return the coordinate of the move played by the Gomoku AI.GetCellPoint(GomokuBoard board) Return a Map of all Cell playable, and their point.
-
Field Details
-
random
Random randomThe random initialization -
difficulty
int difficultyThe difficulty of the GomokuAI
-
-
Constructor Details
-
GomokuAI
public GomokuAI()
-
-
Method Details
-
chooseMove
Return the coordinate of the move played by the Gomoku AI.- Specified by:
chooseMovein classPlayer- Parameters:
board- The actual Gomoku board.- Returns:
- The Cell of the move played.
-
GetCellPoint
Return a Map of all Cell playable, and their point.- Parameters:
board- The actual Gomoku board.- Returns:
- the Map of all Cell playable, and their point.
-