Skip to content

Commit

Permalink
Fix incorrect mateIn(ply) (#757)
Browse files Browse the repository at this point in the history
Affects only mate distance pruning. Thanks to @jherrera80 for pointing out the mistake.

Bench: 23851500
  • Loading branch information
TerjeKir authored Dec 22, 2024
1 parent 16ce294 commit 216d6c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
#define isTerminal(score) (isWin(score) || isLoss(score))

#define matedIn(ply) (-MATE + (ply))
#define mateIn(ply) (MATE + (ply))
#define mateIn(ply) (MATE - (ply))

typedef uint64_t Bitboard;
typedef uint64_t Key;
Expand Down

0 comments on commit 216d6c1

Please sign in to comment.