- All Implemented Interfaces:
Player
Class representing a player in the chess game.
Each player has a color and can make moves.
-
Constructor Summary
Constructors
-
Method Summary
Returns the color of the player.
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Details
-
getColor
Description copied from interface: Player
Returns the color of the player.
- Specified by:
getColor in interface Player
- Returns:
- the color of the player
-
-