/** * Process the coordinates given to try to hit a ship. */ public function play() { if (!$this->debug) { if (false === $this->coords) { $this->flashMessage->notifyError(); } else { if (!empty($this->coords)) { $this->manageShot($this->coords); } } } }