Exemple #1
0
 /**
  * @return bool
  */
 protected function playersHaveCards()
 {
     return $this->player1->hasCards() && $this->player2->hasCards();
 }
Exemple #2
0
 public function __construct(Player $player1, Player $player2)
 {
     $this->player1 = $player1->playCard();
     $this->player2 = $player2->playCard();
 }