Exemplo n.º 1
0
 /**
  * @test
  * @dataProvider playerAfterTurns
  *
  * @param int    $turns
  * @param Player $color
  */
 public function isPlayerGivenTurn($turns, Player $color)
 {
     $this->passTurns($turns);
     $this->assertEquals($color->toString(), $this->positions->currentPlayer());
 }
Exemplo n.º 2
0
 public function currentPlayer()
 {
     return $this->playersInGame->currentPlayer();
 }