예제 #1
0
 /** @param string $name */
 public function __construct($name)
 {
     $this->id = null;
     $this->name = $name;
     $this->state = State::getInitialState();
     $this->initializePlayers();
     $this->currentTurn = null;
 }
예제 #2
0
 public function testInitialStateIsReady()
 {
     $state = State::getInitialState();
     $this->assertTrue($state->isEqual(new State(State::READY)));
 }