misc.c: init_all()

This commit is contained in:
2024-05-15 18:34:50 +02:00
parent 022daf0a89
commit 86f8184c56
5 changed files with 14 additions and 15 deletions

View File

@@ -277,17 +277,14 @@ int main(int __unused ac, __unused char**av)
// run = atoi(av[2]) & 3;
printf("depth = %d run = %x sf = %s\n", depth, run, sf_run? "true": "false");
init_all();
if (!run)
exit(0);
setlocale(LC_NUMERIC, "");
setlinebuf(stdout); /* line-buffered stdout */
if (sf_run)
outfd = open_stockfish();
bitboard_init();
hyperbola_init();
CLOCK_DEFINE(clock, CLOCK_PROCESS);
while ((fen = next_fen(PERFT | MOVEDO))) {
test_line = cur_line();