Limit depth for all=yes to reduce stack usage
authorFabian Fichter <ianfab@users.noreply.github.com>
Sat, 18 Feb 2023 14:20:00 +0000 (15:20 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sat, 18 Feb 2023 14:20:00 +0000 (15:20 +0100)
Partially addresses #583.

src/types.h

index 4231ede..261d49e 100644 (file)
@@ -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
 ///