Exemple #1
0
 private void StartGame()
 {
     player     = new PlayerStat(NumberOfCells, Difficulty);
     gameBoard  = new MinesweeperGame(NumberOfCells, Difficulty);
     inProgress = true;
     gameBoard.PlayGame();
     for (int x = 1; x <= gameBoard.BoardSize.Size; x++)
     {
         for (int y = 1; y <= gameBoard.BoardSize.Size; y++)
         {
             CreateFormCell(x, y);
         }
     }
     SetFormSize();
 }
Exemple #2
0
 public void SaveGameData(PlayerStat player)
 {
     HighScores.Add(player);
     SaveAllGameData();
 }