SearchEngine FindBestMove Method (ChessBoard, SearchEngine SearchMode, ChessBoard PlayerColorE, List ChessBoard MovePosS ,  Int32 , ChessBoard PosInfoS, ChessBoard MovePosS , Int32 , Int32 , Int32 )Delta Engine Documentation
Find the best move using a specific search method View code on GitHub

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

protected abstract bool FindBestMove(
	ChessBoard chessBoard,
	SearchEngine SearchMode searchMode,
	ChessBoard PlayerColorE ePlayerColor,
	List<ChessBoard&#160;MovePosS> moveList,
	int[] arrIndex,
	ChessBoard&#160;PosInfoS posInfo,
	ref ChessBoard&#160;MovePosS moveBest,
	out int iPermCount,
	out int iCacheHit,
	out int iMaxDepth
)

Parameters

chessBoard
Type: Chess ChessBoard
Chess board
searchMode
Type: Chess SearchEngine SearchMode
Search mode
ePlayerColor
Type: Chess ChessBoard PlayerColorE
Color doing the move
moveList
Type: System.Collections.Generic List ChessBoard MovePosS 
Move list
arrIndex
Type:  System Int32 
Order of evaluation of the moves
posInfo
Type: Chess ChessBoard PosInfoS
Position information
moveBest
Type: Chess ChessBoard MovePosS 
Best move found
iPermCount
Type: System Int32 
Total permutation evaluated
iCacheHit
Type: System Int32 
Number of moves found in the translation table cache
iMaxDepth
Type: System Int32 
Maximum depth to use

Return Value

Type: Boolean
true if a move has been found
See Also