summaryrefslogtreecommitdiff
path: root/src/chess.h
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2026-09-20 10:20:16 -0700
committerScott Gasch <[email protected]>2026-09-20 10:20:16 -0700
commit48a958fb6e14607a68067a09b4a4cb576bf6b742 (patch)
tree8951c83088995df8c3e5efe328634478c27ba5b4 /src/chess.h
parent8c0d66f13f08cb5e760d787a878260ad67d17c13 (diff)
INFINITY -> INFINITY_SCORE to not collide with math.h.
Diffstat (limited to 'src/chess.h')
-rwxr-xr-xsrc/chess.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/chess.h b/src/chess.h
index e98c99f..1dcb517 100755
--- a/src/chess.h
+++ b/src/chess.h
@@ -194,12 +194,12 @@ typedef struct _DLIST_ENTRY
((x) <= MAX_DEPTH_PER_SEARCH) && \
(((x) & 0xfffff00f) == 0))
-#define INFINITY (MAX_SHORT)
-#define INVALID_SCORE (INFINITY + 1)
-#define IS_VALID_SCORE(x) (((x) >= -INFINITY) && \
- ((x) <= +INFINITY))
-#define NMATE (+INFINITY - 200)
-#define MATED_SCORE(ply) (-INFINITY + (ply))
+#define INFINITY_SCORE (MAX_SHORT)
+#define INVALID_SCORE (INFINITY_SCORE + 1)
+#define IS_VALID_SCORE(x) (((x) >= -INFINITY_SCORE) && \
+ ((x) <= +INFINITY_SCORE))
+#define NMATE (+INFINITY_SCORE - 200)
+#define MATED_SCORE(ply) (-INFINITY_SCORE + (ply))
#define IS_A_POWER_OF_2(x) (((x) & (x - 1)) == 0)
//
@@ -2230,7 +2230,7 @@ TestFenCode(void);
#define INVERT_ROOK 180
#define VALUE_QUEEN 975
#define INVERT_QUEEN 100
-#define VALUE_KING (INFINITY)
+#define VALUE_KING (INFINITY_SCORE)
#define INVERT_KING 1
#define VALUE_FULL_ARMY (8 * VALUE_PAWN) + (2 * VALUE_KNIGHT) + \