ChessApplication.ChessMove Class
Maintain a chess move.

Access: Public
Base Classes: Object
Implemented interfaces: ICloneable, IComparable
  Members Description  
    from    
    to    
    mtype    
    drawState    
    ChessMove Constructor of a chess move.

 
    ChessMove Constructor of a chess move.

 
    ChessMove Constructor of a chess move.

 
    ChessMove Deserialization constructor of a position on the Chessboard.

 
    ClaimDrawRule50Move Creates a ChessMove that is Claim of Draw based on 50 moves with no capture or pawn move.

 
    ClaimDrawRuleRepetition Creates a ChessMove that is Claim of Draw based on 3 repetetive states.

 
    ClaimDrawUnableToMove Creates a ChessMove that is Claim of Draw based on no avaiable move.

 
    ClaimDrawRuleFewPieces Creates a ChessMove that there is to few pieces left i.e. (a) king against king; (b) king against king with only bishop or knight; (c) king and bishop against king and bishop, with both bishops on diagonals of the same colour.

 
    From Where the chess move is supposed to move from.

 
    To Where the chess move is supposed to move to.

 
    DrawState Get Draw state i.e. weather it is a claim to draw.

 
    MoveType The move type, used to determine preference to check best move

 
    Priority The priority of the, used to determine move to start examine.

 
    Clone Generate a copy of the move.

 
    ToString Makes a good string of the state

 
    GetHashCode Creates a better hashcode.

 
    Equals Equality should be based on State not references.

 
    SaveToXml Xml saving function.

 
    CompareTo Compare ChessMoves based on movement typ/priority, when used with System.Array.Sort() it puts the most promising moves first