Example #1
0
 public function newGame()
 {
     if (!isset($_SESSION["word"])) {
         $_SESSION["word"] = Word::newWord();
     }
     $this->game = new Game($_SESSION["word"]);
 }