ref: fd2eff5de608733ac4461c3c7a5e73733f859ee7
parent: f98c51945d011a94e266d7f5146e18061e0680da
author: zamfofex <zamfofex@twdb.moe>
date: Mon Dec 25 23:50:39 EST 2023
try out new PST values based on Ronald Friederich’s PST (rather than Tomasz Michniewski’s)
--- a/chess.c
+++ b/chess.c
@@ -3,63 +3,63 @@
#include "moonfish.h"
-static int moonfish_piece_scores[] = {100, 320, 330, 500, 900, 0};+static int moonfish_piece_scores[] = {82, 337, 365, 477, 1025, 0};static signed char moonfish_piece_square_scores[] =
{0, 0, 0, 0,
- 50, 50, 50, 50,
- 30, 20, 10, 10,
- 25, 10, 5, 5,
- 20, 0, 0, 0,
- 0, -10, -5, 5,
- -20, 10, 10, 5,
+ 81, 93, 84, 43,
+ 48, 41, 16, -13,
+ 22, 9, 15, -18,
+ 14, 0, 4, -26,
+ -3, 0, 14, -19,
+ -19, 2, 18, -28,
0, 0, 0, 0,
- -30, -30, -40, -50,
- 5, 0, -20, -40,
- 15, 10, 5, -30,
- 20, 15, 0, -30,
- 20, 15, 0, -30,
- 15, 10, 5, -30,
- 5, 0, -20, -40,
- -30, -30, -40, -50,
+ 6, -65, -52, -128,
+ 29, 67, -17, -45,
+ 74, 83, 66, -1,
+ 45, 44, 17, 6,
+ 20, 17, 12, -10,
+ 14, 14, 8, -19,
+ -2, 3, -33, -24,
+ -25, -43, -20, -64,
- -10, -10, -10, -20,
- 0, 0, 0, -10,
- 10, 5, 0, -10,
- 10, 5, 5, -10,
- 10, 10, 0, -10,
- 10, 10, 10, -10,
- 0, 0, 5, -10,
- -10, -10, -10, -20,
+ -31, -62, 5, -18,
+ 8, 20, 17, -36,
+ 37, 46, 37, -9,
+ 43, 28, 6, -3,
+ 30, 12, 11, -1,
+ 14, 21, 16, 5,
+ 3, 18, 24, 2,
+ -17, -13, -21, -27,
- 0, 0, 0, 0,
- 10, 10, 10, 5,
- 0, 0, 0, -5,
- 0, 0, 0, -5,
- 0, 0, 0, -5,
- 0, 0, 0, -5,
- 0, 0, 0, -5,
- 5, 0, 0, 0,
+ 57, 20, 36, 37,
+ 71, 62, 29, 35,
+ 26, 35, 40, 5,
+ 25, 21, -9, -22,
+ 4, -9, -10, -29,
+ -7, -8, -15, -39,
+ -5, -4, -11, -57,
+ 16, 4, -25, -22,
- -5, -10, -10, -20,
- 0, 0, 0, -10,
- 5, 5, 0, -10,
- 5, 5, 0, -5,
- 5, 5, 0, -5,
- 5, 5, 0, -10,
- 0, 0, 0, -10,
- -5, -10, -10, -20,
+ 35, 36, 21, 8,
+ -7, 26, -5, 15,
+ 18, 31, 15, 22,
+ -8, 0, -14, -13,
+ -6, -6, -11, -6,
+ -3, -4, 8, -4,
+ 5, 13, -5, -17,
+ -2, -17, -24, -25,
- -50, -40, -40, -30,
- -50, -40, -40, -30,
- -50, -40, -40, -30,
- -50, -40, -40, -30,
- -40, -30, -30, -20,
- -20, -20, -20, -10,
- 0, 0, 20, 20,
- 0, 10, 30, 20,
+ -35, -9, 12, -26,
+ -7, -12, -19, 0,
+ -18, 4, 23, -15,
+ -28, -18, -17, -26,
+ -42, -35, -17, -50,
+ -45, -26, -14, -20,
+ -53, -12, 8, 4,
+ -23, -8, 30, 0,
};
static struct moonfish_move *moonfish_create_move(struct moonfish_chess *chess, struct moonfish_move **moves, unsigned char from, unsigned char to)
--
⑨