Beispiel #1
0
 static void Main(string[] args)
 {
     ChessEngine.ChessBoard.ChessBoard board = new ChessEngine.ChessBoard.ChessBoard();
     PrintBoard(board);
     Console.WriteLine("");
     board.Move(new ChessBoardCoord(0, 1), new ChessBoardCoord(0, 2));
     PrintBoard(board);
     Console.Read();
 }
Beispiel #2
0
 static void PrintBoard(ChessEngine.ChessBoard.ChessBoard board)
 {
     for (int i = 9; i >= -2; i--)
     {
         for (int j = -2; j < 10; j++)
         {
             Console.Write(" " + board.GetPieceVisualizationString(new ChessBoardCoord(j, i)) + " ");
         }
         Console.Write("\n");
     }
 }