From c9d9bddf3df97ef7987c9824747ec1602522b542 Mon Sep 17 00:00:00 2001 From: Aargh Rai Date: Sat, 18 Jul 2026 18:45:15 +0530 Subject: zobrist hashing --- src/main.c | 29 ++--------------------------- 1 file changed, 2 insertions(+), 27 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 511943f..6dd5e13 100644 --- a/src/main.c +++ b/src/main.c @@ -3,7 +3,7 @@ #include #include #include -#include "fcntl.h" +#include #include "ipc/state.h" #include "ipc/threads.h" @@ -49,38 +49,12 @@ skip_refresh: !(is_stop = ipc_state_is_event(&ipc_state, EVENT_ENGINE_STOP)) ); if (is_stop) { - printf("ENDED\n"); threads_cleanup(&engine_threads); ipc_state_set_event(&ipc_state, EVENT_UCI_RUNNING); goto waiting_for_go; } threads_go_loop(&engine_threads); ipc_state_set_event(&ipc_state, EVENT_UCI_RUNNING); - // if (atomic_load(&ipc_state->state.quit)) break; - // if (atomic_load(&ipc_state->state.cleanup)) { - // set_threads(&engine_threads, 0); - // for (int i = 0; i < engine_threads.count; i++) { - // engine_threads.args[i].stop = -1; - // } - // } - // if (atomic_load(&ipc_state->state.go)) { - // printf("going\n"); - // engine_threads.sharing_position = ipc_state->state.position; - // engine_threads.go_args = (struct go_args*)ipc_state->state.go_args; - // set_threads(&engine_threads, ipc_state->state.threads); - // atomic_store(&ipc_state->state.go, 0); - // atomic_store(&ipc_state->state.go_ready_receive, 1); - // } - // if (atomic_load(&ipc_state->state.stop)) { - // printf("stopping\n"); - // send_stop_signal(&engine_threads); - // if (!all_stopped(&engine_threads)) continue; - // set_threads(&engine_threads, 0); - // for (int i = 0; i < engine_threads.count; i++) { - // engine_threads.args[i].stop = -1; - // } - // atomic_store(&ipc_state->state.stop, 0); - // } } ipc_state_deinit(&ipc_state); @@ -91,3 +65,4 @@ skip_refresh: #include "fen.c" #include "bitboard.c" +#include "random.c" -- cgit v1.2.3