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