Esempio n. 1
0
 //Asks the user how they wish to set up the board, sets up the board accordingly and then begins a match.
 private void NewGame()
 {
     if (GetUserInput("Do you want to place the ships yourselves? (Y/N)"))
     {
         saveLoadedFrom = -1;
         p1.InitialiseGameBoard();
         p2.InitialiseGameBoard();
         gameInProgress = true;
         menu           = false;
         turnPlayer     = p1;
         standbyPlayer  = p2;
         CreateGameLog();
     }
     else
     {
         saveLoadedFrom = -1;
         ReadGameBoardsFromFile(GetGameBoardToLoad());
     }
 }