示例#1
0
 /**
  * Main method which manage the html request.
  */
 public function runAction()
 {
     $this->initialize();
     $this->game->setDebugMode($this->request->isDebug());
     $this->game->setCoords($this->request->retrieveCoord());
     $this->game->play();
     $this->game->save();
     $this->battleshipView->render($this->game, $this->request->getForm());
 }