ChessBoard ClassDelta Engine Documentation
Implementation of the chess board without any user interface.View code on GitHub
Inheritance Hierarchy

System Object
  Chess ChessBoard

Namespace: Chess
Assembly: Chess (in Chess.exe) Version: 1.1.1.0 (1.1.1)
Syntax

public sealed class ChessBoard

The ChessBoard type exposes the following members.

Constructors

  NameDescription
Public methodChessBoard 
Class constructor. Build a board. View code on GitHub
Public methodChessBoard(SearchEngine ITrace)
Class constructor. Build a board. View code on GitHub
Top
Methods

  NameDescription
Public methodCancelSearch
Cancel search View code on GitHub
Public methodCheckIntegrity
Check the integrity of the board. Use for debugging. View code on GitHub
Public methodCheckNextMove
Check if next move is possible. View code on GitHub
Public methodClone
Clone the current board View code on GitHub
Public methodCloseDesignMode
Try to close the design mode. View code on GitHub
Public methodComputeBoardExtraInfo
Compute extra information about the board View code on GitHub
Public methodComputePiecesCoverage
Enumerates all the possible moves for a player View code on GitHub
Public methodCopyFrom
Copy the state of the board from the specified one. View code on GitHub
Public methodCreateGameFromMove
Create a new game using the specified list of moves View code on GitHub
Public methodDoMove
Do the move View code on GitHub
Public methodDoMoveNoLog
Do the move (without log) View code on GitHub
Public methodEnumMoveList(ChessBoard PlayerColorE)
Enumerates all the possible moves for a player View code on GitHub
Public methodEnumMoveList(ChessBoard PlayerColorE, Boolean, ChessBoard PosInfoS )
Enumerates all the possible moves for a player View code on GitHub
Public methodFindBestMove
Find the best move for a player using alpha-beta pruning or minmax search View code on GitHub
Public methodFindBookMove
Find a move from the opening book View code on GitHub
Public methodFindIfValid
Find a move from the valid move list View code on GitHub
Public methodFindValidPawnPromotion
Find type of pawn promotion are valid for the specified starting/ending position View code on GitHub
Public methodGetEatedPieceCount
Get the number of the specified piece which has been eated View code on GitHub
Public methodStatic memberGetHumanPos(Int32)
Gets the position express in a human form View code on GitHub
Public methodStatic memberGetHumanPos(ChessBoard MovePosS)
Gets the position express in a human form View code on GitHub
Public methodIsCheck
Determine if the specified king is attacked View code on GitHub
Public methodIsEnoughPieceForCheckMate
Check if there is enough pieces to make a check mate View code on GitHub
Public methodLoadBoard
Load the content of the board into the specified stream View code on GitHub
Public methodOpenDesignMode
Open the design mode View code on GitHub
Public methodPoints
Evaluates a board. The number of point is greater than 0 if white is in advantage, less than 0 if black is. View code on GitHub
Public methodReadBook
Read the opening book from disk View code on GitHub
Public methodReadBookFromResource
Read the opening book from disk View code on GitHub
Public methodRedoMove
Redo a move View code on GitHub
Public methodResetBoard
Reset the board to the initial configuration View code on GitHub
Public methodSaveBoard
Save the content of the board into the specified binary writer View code on GitHub
Public methodSetUndoRedoPosition
SetUndoRedoPosition: Set the Undo/Redo position View code on GitHub
Public methodUndoAllMoves
Undo all the specified move starting with the last move View code on GitHub
Public methodUndoMove
Undo a move View code on GitHub
Public methodUndoMoveNoLog
Undo a move (without log) View code on GitHub
Top
Fields

  NameDescription
Public fieldStatic members_posInfoNull
NULL position infoView code on GitHub
Top
Properties

  NameDescription
Public propertyBlackPieceCount
Gets the number of black pieces on the board View code on GitHub
Public propertyCurrentMoveColor
Current moving color View code on GitHub
Public propertyCurrentZobristKey
Current Zobrist key value View code on GitHub
Public propertyDesignMode
Determine if the board is in design mode View code on GitHub
Public propertyItem Int32 
Get a piece at the specified position. Position 0 = Lower right (H1), 63 = Higher left (A8) View code on GitHub
Public propertyItem Int32, Int32 
Public propertyMovePosStack
Stack of all moves done since initial board View code on GitHub
Public propertyNextMoveColor
Next moving color View code on GitHub
Public propertyStandardInitialBoard
true if the board is standard, false if initialized from design mode or FEN View code on GitHub
Public propertyWhitePieceCount
Gets the number of white pieces on the board View code on GitHub
Top
See Also