Beispiel #1
0
 protected function win(Game $game, $color = 'white')
 {
     $game->setStatus(Game::MATE);
     $game->setWinner($game->getPlayer($color));
     $this->finisher->finish($game);
 }