Class Player
java.lang.Object
Player
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract GomokuCellchooseMove(GomokuBoard board) Return the coordinate of the move played by the player.getColor()Return the color of the player.getName()Return the name of the player.voidThe constructor of the Player.
-
Field Details
-
name
The name of the Player -
color
The color of the Player
-
-
Constructor Details
-
Player
Player()
-
-
Method Details
-
Player
-
getName
-
getColor
-
chooseMove
Return the coordinate of the move played by the player.- Parameters:
board- The actual Gomoku board.- Returns:
- The cell of the move played.
-