Ejemplo n.º 1
0
        private void Shuffles()
        {
            game.Shuffle();
            Console.WriteLine(game.GetBoardString());
            /// Trying another Shuffle if the board is not solvable
            while (!game.IsSolvable())
            {
                game.Shuffle();
                Console.WriteLine("Not Solvable, Getting Another Board");
                Console.WriteLine(game.GetBoardString());
            }

            int[] gameBoard = game.GetBoard();
            UpdateBoard(gameBoard);
            WinText();
            game.SetMoveCount(0);
            UpdateCount();
        }