The EFS project
(E)valuation (F)or (S)tarters
Short description of the main important variables and tables
Used Name | Definition | Where and/or What |
char bord [280] | Playing board where it all happens | |
char bord2 [256] | Square attacks (white) | |
char bord3 [256] | Square attacks (black) | |
char hang_tab [920000] | Precalculated table (attack.bin) read into memory for fast detection of hanging pieces (SEE). | Created in init() used in eval2.c |
wpnum [16] zpnum [16] | Row based pawn table (for white and black) indicating the rank of a pawn. | Created in init() used for mobility, king safety, pawn evaluation, detecting passed pawns. |
wpdup [8] zpdup [8] | Row based pawn table indicating the number of pawns. | Created in init() used for double isolated pawn evaluation. |
xw | xz | Sum pieces following the 9|5|3|3|1 rule. | Created in init() among other things used for determining the game phase, enough material left for king safety. |
xwp | xzp | Sum number of pawns. | Created in init() among other things used for the late endgame evaluation mainly. |
xwz | Game phase: 4 = middle game 3 = middle game without queens 2 = late end game 1 = normal endgame | Created in init() and used for various evaluations. |
veldwz | wpnt1 | wpnt2 | zpnt1 | zpnt2 | Already introduced on the main page. | |
mg | eg | Piece Square evaluation middle game and end game. | attack.c |
wmat | sum material of the pieces as defined in table hsw (see table.c) | attack.c |
mpi | double pawn evaluation. | Done in init() |
mp | Final evaluation score. | |
first_time | Variable used to initialize bord and read attack.bin into memory. | Done in init() |
bgstel | start position in REBEL format. | tables.c |
ks | kval1 | kval2 | wpaf | wpbg | zpaf | zpbg | king safety evaluation. | tables.c |
mobtab | mobility evaluation | tables.c |
wbit | zbit | remval | remcore | late endgame evaluation, more info. | tables.c |
wpm | wpe | wpl (white) zpm | zpe | zpl (black) | pawn piece square evaluation middle game, end game, when long castle | pst.c |
wnm | wne (white) znm | zne (black) | knight piece square evaluation middle game, end game. | pst.c |
wlm | wle (white) zlm | zle (black) | bishop piece square evaluation middle game, end game. | pst.c |
wtm | wte (white) ztm | zte (black) | rook piece square evaluation middle game, end game. | pst.c |
wdm | wde (white) zdm | zde (black) | queen piece square evaluation middle game, end game. | pst.c |
wkm | wko | wkzk (white) zkm | wko | wkzk (black) | king piece square evaluation middle game, middle without queens and end game. | pst.c |
wiso | ziso | penalty for weak pawn | pst.c |
wpol | zpol | penalty if weak pawn on open file | pst.c |
wpform | zpform | bonus when pawn has a connection | pst.c |
wpform6 | zpform6 | extra bonus when pawns connect on equal rank. | pst.c |
wblok | zblok | evaluate pressure on a weak pawn. | pst.c |