aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authortslil clingman <tslil@posteo.de>2021-01-23 11:11:26 -0500
committertslil <tslil@posteo.de>2026-08-28 19:37:41 +0100
commit3f919c40804f024737bcf4da85027a980db6eb23 (patch)
tree8d5aba947c61bd810143418ebabc289c4890f77f /include
parente6a5b63bbeb36ff9d9d5f2c002395012a0d41fdf (diff)
no speed increase ...
Diffstat (limited to 'include')
-rw-r--r--include/negamax_cnn1986.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/negamax_cnn1986.c b/include/negamax_cnn1986.c
index b9d618d..6c834f1 100644
--- a/include/negamax_cnn1986.c
+++ b/include/negamax_cnn1986.c
@@ -194,7 +194,11 @@ float
negamax_cnn1986(const uint8_t cur_depth, float alpha, float beta,
const float colour) {
- if (cnn1986_cache_seek(&alpha)) {
+ int sought = EXIT_FAILURE;
+ if (cur_depth < negamax_cnn1986_cache_threshold) {
+ sought = cnn1986_cache_seek(&alpha);
+ }
+ if (sought) {
const uint8_t black = (ply & 1),
material = (black) ? black_count : white_count,
flat = material & 127,