Esempio n. 1
0
        private void GenerateGameField()
        {
            try
            {
                BoardGenerator boardGenerator = new BoardGenerator();
                boardGenerator.GenerateSolutionBoard();
                boardGenerator.GenerateGameBoard();
                _gameBoard     = boardGenerator.GetGameBoard();
                _solutionBoard = boardGenerator.GetSolutionBoard();

                OnGameCreated();
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                throw;
            }
        }