tacklebox/tests/02_print_hash.c

16 lines
322 B
C
Raw Normal View History

2024-11-16 00:17:47 +00:00
#include "../include/chess.h"
int main(int argc, char *argv[]){
if(argc < 2){
exit(EXIT_FAILURE);
}
U64 state = rnd64(2);
ZHasher z;
z.init_state = state;
init_zhasher(&z);
Gamestate g;
parse_fen(argv[1],&g);
printf("\n%llu\n",generate_hash(&g,&z));
return EXIT_SUCCESS;
}