|
Defines |
#define | __ALG1_SEARCH_H__ |
#define | ALLOWED_DEVIATION 0.001 |
#define | CAPTURE_COLOUR_BLACK COLOUR_BLACK |
#define | CAPTURE_COLOUR_WHITE COLOUR_WHITE |
#define | CAPTURE_MOVE_EXTENTION 0.666 |
#define | LIST_LENGTH 9 |
#define | MAX_DEPTH_EXTENTION 2 |
#define | NON_SILENT_EXTENTION 0.333 |
#define | SILENT_EXTENTION 1 |
#define | TO_BLACK(x) ((x) + (LOWERCASEBIT)) |
#define | TO_WHITE(x) ((x)) |
Functions |
int | fill_movelist (const t_colour nColour, const t_boolean bQuieuscience, const enum tFillMoves bFill) |
t_boolean | isInCheck (const t_boolean lEvaluateForWhite) |
| is the position in check
|
unsigned int | isUnderAttack (const posid iKingPos, const t_boolean bEvaluateForWhite) |
unsigned int | isUnderMinorAttack (const posid iPiecePos, const t_piece cPiece, const t_boolean bEvaluateForWhite) |
| see if the piece gets attached by a minor piece, needed for evaluation
|
void | normalize_movelist (void) |
| normalize the movelist to a 8x8 board
|
int | search_apply_move (const char *szMove) |
void | search_constructor (void) |
| function called once for engine construction
|
void | search_init (void) |
| function called once for new game, here the board position is copied from the board into the engine calling this function will cause ep, rock and repetition and 50 moves flags to be reset
|
void | search_initboard (void) |
| copy 8x8 board into 144 array and fill from user interface into engine data
|
void | search_printablemove (const int iSelectedMove, char *szMove) |
int | search_root (t_depth iDepth, char *szMove, int iLenMove) |
| return 0 in case of some problem return 1 in case of ok
|