Beispiel #1
0
 /// <summary>
 /// Funkcja zapisująca stan gry i wynik
 /// </summary>
 private void SaveGameState()
 {
     AppMemory appMemory = new AppMemory();
     appMemory.SaveGameState(_game.GetGameBoard(), _calculate.GlobalResult);
 }
Beispiel #2
0
        /// <summary>
        /// Czyszczenie Pamięci.
        /// </summary>
        private void ClearMemory()
        {
            ControlPanel controlClear = new ControlPanel();
            Game gameClear = new Game(controlClear);

            CardImage[] cardImage = gameClear.RandNewCards();

            AppMemory appMemory = new AppMemory();
            appMemory.SaveGameState(gameClear.GetGameBoard(), 0);
        }