Пример #1
0
            static void Main(string[] args)
            {
                Console.WriteLine("Chess Demo");
                Board board = new Board();

                board.FillBoard();

                board.insertPiece(2, 0, "j2", "B");
                board.insertPiece(4, 0, "j2", "Q");
                board.insertPiece(3, 0, "j2", "K");
                board.insertPiece(5, 0, "j2", "R");
                board.insertPiece(6, 0, "j2", "H");
                board.insertPiece(7, 0, "j2", "P");

                board.insertPiece(2, 7, "j1", "B");
                board.insertPiece(4, 7, "j1", "Q");
                board.insertPiece(3, 7, "j1", "K");
                board.insertPiece(5, 7, "j1", "R");
                board.insertPiece(6, 7, "j1", "H");
                board.insertPiece(7, 7, "j1", "P");

                board.ReadBoard();

                board.Game("Player 1");
            }