use eval_simple() as base for eval()

This commit is contained in:
2023-07-12 21:32:26 +02:00
parent d852e0bc1d
commit e2a3563fce
2 changed files with 12 additions and 12 deletions

View File

@@ -19,13 +19,12 @@
#include "chessdefs.h"
#include "piece.h"
#define EVAL_MAX \
KING_VALUE + \
QUEEN_VALUE * 9 + \
ROOK_VALUE * 2 + \
BISHOP_VALUE * 2 + \
KNIGHT_VALUE * 2
/* max pieces eval is KING_VALUE + 9*QUEEN_VALUE + 2*ROOK_VALUE + 2*BISHOP_VALUE
* + 2*KNIGHT_VALUE which around 30000.
* We are on secure sire with -50000/+50000
*/
#define EVAL_MAX (50000)
#define EVAL_MIN (-EVAL_MAX)
#define EVAL_INVALID INT_MIN