Ejemplo n.º 1
0
 /// <summary>
 /// Initialize a chess game.
 /// </summary>
 public ChessGame()
 {
     // Create a new ChessBoardState.
     // This keeps track of the position of all pieces, whether or not each king can castle to each side,
     // en passant capture squares, whose turn it is, and number of moves made since the last pawn move / capture.
     boardState = new ChessBoardState();
     boardState.Initialize();
 }