ref: 6ce47f5b11173b9e0392d461333c4173564be2fe
parent: cbdb425ba1f8e19dd4a1ac8f3d92d5a13b536dc8
author: zamfofex <zamfofex@twdb.moe>
date: Tue Apr 30 23:12:11 EDT 2024
fix small bug
--- a/chess.c
+++ b/chess.c
@@ -293,7 +293,7 @@
if (color == 0) y = 7 - y;
- if (x < 4) x = 4 - x;
+ if (x < 4) x = 3 - x;
else x %= 4;
score = moonfish_piece_scores[type] + moonfish_piece_square_scores[x + y * 4 + type * 32];
--
⑨