/** * @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; }
private function assertStoneCount($count, Dto\Player $player) { $this->assertCount($count, $player->getStones()); }