The EFS project
(E)valuation (F)or (S)tarters
Short description of the main important variables and tables
Where and/or What
char bord 
Playing board where it all happens
char bord2 
Square attacks (white)
char bord3 
Square attacks (black)
char hang_tab 
Precalculated table (attack.bin) read into memory for fast detection of hanging pieces (SEE).
Created in init() used in eval2.c
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.
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.
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.
sum material of the pieces as defined in table hsw (see table.c)
double pawn evaluation.
Done in init()
Final evaluation score.
Variable used to initialize bord and read attack.bin into memory.
Done in init()
start position in REBEL format.
ks | kval1 | kval2 | wpaf | wpbg | zpaf | zpbg
king safety evaluation.
wbit | zbit | remval | remcore
late endgame evaluation, more info.
wpm | wpe | wpl (white)
zpm | zpe | zpl (black)
pawn piece square evaluation middle game, end game, when long castle
wnm | wne (white)
znm | zne (black)
knight piece square evaluation middle game, end game.
wlm | wle (white)
zlm | zle (black)
bishop piece square evaluation middle game, end game.
wtm | wte (white)
ztm | zte (black)
rook piece square evaluation middle game, end game.
wdm | wde (white)
zdm | zde (black)
queen piece square evaluation middle game, end game.
wkm | wko | wkzk (white)
zkm | wko | wkzk (black)
king piece square evaluation middle game, middle without queens and end game.
wiso | ziso
penalty for weak pawn
wpol | zpol
penalty if weak pawn on open file
wpform | zpform
bonus when pawn has a connection
wpform6 | zpform6
extra bonus when pawns connect on equal rank.
wblok | zblok
evaluate pressure on a weak pawn.