Ejemplo n.º 1
0
 /**
  * Checks if the player has sunk all the ships.
  *
  * @return bool
  */
 public function isCompleteGame()
 {
     return $this->sunkShips === $this->shipsGrid->countShips();
 }