Combo changes
- move eval_material to eval-simple.c - move phase_t to eval.h - init.c: add eval init - piece.h: add piece_midval/piece_endval - fen.c: add phase calculation - eval-simple: fix calc_phase
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include "chessdefs.h"
|
||||
#include "alloc.h"
|
||||
#include "position.h"
|
||||
#include "eval-simple.h"
|
||||
#include "fen.h"
|
||||
|
||||
/* FEN description:
|
||||
@@ -258,6 +259,7 @@ end:
|
||||
return NULL; /* invalid position: ignored */
|
||||
|
||||
tmppos.key = zobrist_calc(&tmppos);
|
||||
tmppos.phase = calc_phase(&tmppos);
|
||||
if (!pos)
|
||||
pos = pos_new();
|
||||
pos_copy(&tmppos, pos);
|
||||
|
Reference in New Issue
Block a user