Example #1
0
 /**
  * @param Player $player
  *
  * @return Move[]
  */
 private function getMoves(Player $player)
 {
     $moves = [Move::pass()];
     foreach ($player->getStones() as $stone) {
         $moves[] = Move::play($stone->getTopValue(), $stone->getBottomValue(), 'left');
         $moves[] = Move::play($stone->getTopValue(), $stone->getBottomValue(), 'right');
     }
     return $moves;
 }
Example #2
0
 private function assertStoneCount($count, Dto\Player $player)
 {
     $this->assertCount($count, $player->getStones());
 }