net.bluebones.tictactoe
Class Game
java.lang.Object
net.bluebones.tictactoe.Game
public class Game
- extends Object
Constructor Summary |
Game(Player[] players)
Creates a new Game with the specified players. |
Method Summary |
void |
play()
Called to begin a Game . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Game
public Game(Player[] players)
- Creates a new
Game
with the specified players.
- Parameters:
players
- Player[]
of the two players.
- Throws:
IllegalArgumentException
- unchecked, if
there are not 2 players.
play
public void play()
- Called to begin a
Game
.