shithub: moonfish

Download patch

ref: bf82ecda71e4afbbf0a553c9650dbba36f622aa9
parent: c17ff753bda7016025a9ac2b69fc890989c18e1b
author: zamfofex <zamfofex@twdb.moe>
date: Sat Nov 11 09:45:48 EST 2023

fix PST evaluation

--- a/chess.c
+++ b/chess.c
@@ -317,7 +317,7 @@
 	if (x < 4) x = 4 - x;
 	else x %= 4;
 	
-	score = moonfish_piece_scores[type] + moonfish_piece_square_scores[x + y * 4 + type * 20];
+	score = moonfish_piece_scores[type] + moonfish_piece_square_scores[x + y * 4 + type * 32];
 	if (color != 0) score *= -1;
 	
 	return score;
--