diff options
| author | Aargh Rai <aargh.rai+git@gmail.com> | 2026-07-10 16:01:57 +0530 |
|---|---|---|
| committer | Aargh Rai <aargh.rai+git@gmail.com> | 2026-07-10 16:01:57 +0530 |
| commit | a14da2fe3864712dab4e7c4cfb5c323026d668de (patch) | |
| tree | 418c8c8ff44a611cbe1c1269b10926527046e232 /src/ipc.c | |
| parent | 2761f8a533e2b025f209222a1e4ec70b91c7e8ee (diff) | |
moving header files to include directory & moving resources in it's own directory
i know currently there is race condition, but the code is getting too
messy, i will continue to this after i make a vis tool to analyse how i
should split up files & stuff
the code rn needs intense restructing for it to make any more progress
Diffstat (limited to 'src/ipc.c')
| -rw-r--r-- | src/ipc.c | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -22,6 +22,24 @@ void add_comm_move(comm_moves *moves, struct uci_move move) { moves->moves[moves->count++] = move; } + +bool should_continue(struct engine_message *message, struct go_args* go) { + int depth; + int nodes; + int mate; + if (go->depth && (go->depth >= message->depth)) { + return false; + } + if (go->nodes && (go->nodes >= message->nodes)) { + message->node_limit = true; + return false; + } + if (go->mate && message->mate && (go->mate <= message->mate)) { + return false; + } + return true; +} + #include "fen.c" #include "bitboard.c" |
