Skip to content

Commit

Permalink
Update types.h: Revert max depth to 246
Browse files Browse the repository at this point in the history
  • Loading branch information
yjf2002ghty authored Apr 29, 2024
1 parent 87dcd10 commit 140a222
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -233,16 +233,14 @@ constexpr int SQUARE_BITS = 6;
#ifdef ALLVARS
constexpr int MAX_MOVES = 8192;
#ifdef USE_HEAP_INSTEAD_OF_STACK_FOR_MOVE_LIST
//Since it's unlikely to run out of heap, the max depth can be set much deeper.
constexpr int MAX_PLY = 1024;
constexpr int MAX_PLY = 246;
#else
constexpr int MAX_PLY = 60;
#endif
/// endif USE_HEAP_INSTEAD_OF_STACK_FOR_MOVE_LIST
#else
constexpr int MAX_MOVES = 1024;
constexpr int MAX_PLY = 246;
/// endif USE_HEAP_INSTEAD_OF_STACK_FOR_MOVE_LIST
#endif
/// endif ALLVARS

Expand Down

0 comments on commit 140a222

Please sign in to comment.