remove -DBIN_xxx from brchess source files. parts moved to ./test (TODO)
This commit is contained in:
34
src/eval.c
34
src/eval.c
@@ -93,37 +93,3 @@ eval_t eval(pos_t *pos)
|
||||
pos->eval = res;
|
||||
return res;
|
||||
}
|
||||
|
||||
#ifdef BIN_eval
|
||||
#include "fen.h"
|
||||
#include "move.h"
|
||||
|
||||
int main(int ac, char**av)
|
||||
{
|
||||
pos_t *pos;
|
||||
eval_t res;
|
||||
|
||||
debug_init(5, stderr, true);
|
||||
|
||||
piece_pool_init();
|
||||
moves_pool_init();
|
||||
pos_pool_init();
|
||||
pos = pos_get();
|
||||
|
||||
if (ac == 1) {
|
||||
pos_startpos(pos);
|
||||
} else {
|
||||
fen2pos(pos, av[1]);
|
||||
}
|
||||
|
||||
pos_print(pos);
|
||||
pos_pieces_print(pos);
|
||||
|
||||
moves_gen_all(pos);
|
||||
|
||||
pos_print(pos);
|
||||
moves_print(pos, M_PR_SEPARATE);
|
||||
res = eval(pos);
|
||||
printf("eval=%d centipawns)\n", res);
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user