Exemple #1
0
 protected function playRound()
 {
     $round = new Round($this->player1, $this->player2);
     try {
         $round->play();
         $round->victor()->capture($round->cardsPlayed());
         $this->rounds->push($round);
     } catch (NoCardsToPlayException $e) {
         $this->endGame();
     }
 }