From 104d2f40e4d064815d6b06d0c812aec3b7b01f20 Mon Sep 17 00:00:00 2001 From: Fabian Fichter Date: Sat, 18 Feb 2023 15:20:00 +0100 Subject: [PATCH] Limit depth for all=yes to reduce stack usage Partially addresses #583. --- src/types.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/types.h b/src/types.h index 4231ede..261d49e 100644 --- a/src/types.h +++ b/src/types.h @@ -229,10 +229,11 @@ constexpr int SQUARE_BITS = 6; #ifdef ALLVARS constexpr int MAX_MOVES = 8192; +constexpr int MAX_PLY = 60; #else constexpr int MAX_MOVES = 1024; -#endif constexpr int MAX_PLY = 246; +#endif /// A move needs 16 bits to be stored /// -- 1.7.0.4