Esempio n. 1
0
        public static void PrintTheBoard(bool firstRound)
        {
            //Console.Clear();
            if (firstRound)
            {
                UserSelection.ClearCurrentConsoleLine(Console.CursorTop, 4);
            }
            else
            {
                EraseTheBoard();
            }

            string theBoard = GameboardVisuals.GameboardHandler(gameDifficulty, boardState);

            Console.WriteLine(theBoard);
        }
Esempio n. 2
0
        public static void EraseTheBoard()
        {
            int tilesToErase = 0;

            if (gameDifficulty == "easy")
            {
                tilesToErase = 12;
            }
            if (gameDifficulty == "regular")
            {
                tilesToErase = 20;
            }
            if (gameDifficulty == "hard")
            {
                tilesToErase = 34;
            }

            UserSelection.ClearCurrentConsoleLine(Console.CursorTop, tilesToErase);
        }