Beispiel #1
0
        static void ShowInstructions()
        {
            Console.WriteLine(_introText1);
            var board = new OrdinaryChessBoard();

            BoardDisplay.ShowBoard(new BoardViewModel(board));
            ShowInColor(_introText2, ConsoleColor.Red);
            ShowInColor(_introText3, ConsoleColor.Blue);
            Console.Write(_introText4);
            ShowInColor("1", ConsoleColor.Green);
            Console.Write(_introText5);
            ShowInColor("2", ConsoleColor.Green);
            Console.Write(_introText6);
            ShowInColor("3", ConsoleColor.Green);
            Console.Write(_introText7);
            ShowInColor("1", ConsoleColor.Green);
            Console.WriteLine(_introText8);

            var knight = board.RemoveFigure(board.GetPositionAt(0, 1));

            board.SetFigure(knight, board.GetPositionAt(2, 0));
            BoardDisplay.ShowBoard(new BoardViewModel(board));
            Console.WriteLine(_introText9);
            Console.WriteLine(_introText10);
        }