Package a5.util
Class PlayerRole
java.lang.Object
a5.util.PlayerRole
A class representing player roles.
In an (m, n, k) game, there are two player roles:
the first player and the second player.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns: the role of the next player whenthis
is the current player.
-
Field Details
-
FIRST_PLAYER
-
SECOND_PLAYER
-
-
Method Details
-
nextPlayer
Returns: the role of the next player whenthis
is the current player. -
boardValue
public int boardValue()
-