ChessApplication.ChessBoard Class
Summary description for ChessBoard.

Access: Public
Base Classes: Object
Implemented interfaces: ICloneable, IEnumerable, IComparable
  Members Description  
    WhosTurn    
    State    
    drawCause    
    board    
    BlackKingRef    
    WhiteKingRef    
    nrMovePlayed    
    lastCaptureMoveNr    
    lastPawnMoveNr    
    ChessBoardEnumeratorArray    
    ChessBoardEnumerator    
    GetEnumerator Gets the enumerator for the pieces on the board(enumerates even the "null" pieces).

 
    SwapColor Swap the color.

 
    ChessBoard Constructor of a chessboard.

 
    ChessBoard Deserialization constructor of a Chessboard.

 
    ColorToMove The color of the side who's turn it is to move.

 
    GameState The state of the game.

 
    DrawCause The cause for draw.

 
    BlackKing A reference to the black king.

 
    WhiteKing A reference to the white king.

 
    NumberOfMovePlayed The number of moves currently played in this game.

 
    GetPiece Returns a piece on the chessboard.

 
    GetPiece Returns a piece on the chessboard.

 
    SetPiece Set a piece on the chessboard.

 
    GenerateAllMoves    
    MoveToNotChecked    
    Moves2Boards    
    HasAnyLegalMove Determines if a side has any valid moves. The color/side to check if having any legal moves

 
    CalculateTotalValue    
    CalculateTotalValueMovmentBonus    
    CompareTo Compares the chess boards based on their piece values.

 
    GenerateBoardValue Calculate the value of the board for one side.

 
    GenerateBoardValue Calculate the value of the board for the current player.

 
    GenerateSucessor Generates all the possible successor of the board,

 
    GenerateNewPositionsForPiece Generates all the possible moves for one Piece.

 
    IsChecked Determines if a King is Checked. The color of the king to see if it's checked

 
    SwapTurnColor    
    IsPositionCheckedBy Determines if a position is checked.

 
    SetGameState    
    MovePiece Move a piece on the chessboard.

 
    MovePiece Move a piece on the chessboard.

 
    IsSqareOccupied Determine if the a square is occupied.

 
    IsSquareColorBlack Determine if the a square is black.

 
    IsSquareColorBlack Determine if the a square is black.

 
    IsSquareColorWhite Determine if the a square is white.

 
    IsInsideBoard Determine if the a square is inside the board.

 
    IsInsideBoard Determine if the a square is inside the board.

 
    GetQueenRelativeValue Gets the relative value of a queen.

 
    GetQueenMovementBonus Gets the bonus amount of a queen.

 
    Clone Generate a copy of the ChessBoard.

 
    SaveToXml Xml saving function.

 
    Equals Equality should be based on State not references.

 
    Equals Equality should be based on State not references.

 
    GetHashCode Creates a better hashcode.

 
    SetPawnMoveCurrent Set the last Pawn move to the current move.

 
    SetCaptureMoveCurrent Set the last capture move to the current move.

 
    Draw50MovesRule Determine if the "50 moves rules" are applicable that is: If there are have been 50 consecutive moves of white and of black without any piece taken any pawn move

 
    DrawMoveRepetition Determine if the 3 repetetiv states/moves rule are applicable.

 
    DrawMoveRepetition Determine if the 3 repetetiv states/moves rule are applicable.

 
    DrawMoveRepetition Determine if the 3 repetetiv states/moves rule are applicable.

 
    DrawToFewPiecesRule Determine if the "50 moves rules" are applicable that is: If there are have been 50 consecutive moves of white and of black without any piece taken any pawn move

 
    ApplyPieceValues Constructor of a chessboard.

 
    CapturedPieces Give the number of pieces captured.