eval.c, eval-simple.c: start to migrate from 0x88 (does not compile)

This commit is contained in:
2024-06-30 10:00:35 +02:00
parent 4d1870ffb3
commit 58c985f52f
4 changed files with 290 additions and 294 deletions

View File

@@ -17,16 +17,16 @@
#include <limits.h>
#include "chessdefs.h"
#include "piece.h"
/* 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 side with -50000/+50000
/* max pieces eval is 9*QUEEN_VALUE + 2*ROOK_VALUE + 2*BISHOP_VALUE
* + 2*KNIGHT_VALUE which is (for a pawn valued at 100) well less than 10,000.
*/
#define EVAL_MAX (50000)
#define EVAL_MAX (SHRT_MAX) /* 32767 */
#define EVAL_MIN (-EVAL_MAX)
#define EVAL_INVALID INT_MIN
#define EVAL_MATE EVAL_MAX
#define EVAL_INVALID EVAL_MIN
#define EVAL_MATE 30000
eval_t eval_material(pos_t *pos, bool color);
eval_t eval_mobility(pos_t *pos, bool color);