Class Player

java.lang.Object
  |
  +--Player

public class Player
extends java.lang.Object

The Player class represents a player of the game Tic Tac Toe. Bugs: none known


Constructor Summary
Player(java.lang.String specifiedMark)
          Constructs a Player object with an inputted name and specified mark.
 
Method Summary
 Mark getMark()
          Gets a player's mark.
 Move getMove()
          Gets a player's move from input.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Player

public Player(java.lang.String specifiedMark)
Constructs a Player object with an inputted name and specified mark.
Parameters:
specifiedMark - player's specified mark, assumed to be 1 char.
Method Detail

getMove

public Move getMove()
Gets a player's move from input.
Returns:
a Move object of the player's chosen move

getMark

public Mark getMark()
Gets a player's mark.
Returns:
the player's mark