Esempio n. 1
0
        /// <summary>
        /// Different methods that we use to draw all the events in the game.
        /// </summary>
        private static void DrawBoard()
        {
            var drawableGameBoard = Game.GenerateDrawable();

            for (int i = 0; i < drawableGameBoard.Count; i++)
            {
                var previousColor = Console.ForegroundColor;

                //TODO: Better way of getting width
                if (i % 11 == 0)
                {
                    Console.WriteLine();
                }

                Console.ForegroundColor = drawableGameBoard[i].Color;
                Console.Write(drawableGameBoard[i].Character);

                Console.ForegroundColor = previousColor;
            }
            Console.WriteLine();
            Console.WriteLine();
        }