ref: 05eb0619b185c63c3ecab6768a6fdb1052eed8c9
parent: 38a3f2070fac030b3073f196b9b52b075426ae0a
author: zamfofex <zamfofex@twdb.moe>
date: Sat Oct 26 14:12:17 EDT 2024
remove unused 'moonfish_stalemate' function
--- a/chess.c
+++ b/chess.c
@@ -462,12 +462,6 @@
return moonfish_finished(chess);
}
-int moonfish_stalemate(struct moonfish_chess *chess)
-{- if (moonfish_check(chess)) return 0;
- return moonfish_finished(chess);
-}
-
static int moonfish_match_move(struct moonfish_chess *chess, struct moonfish_move *move, unsigned char type, unsigned char promotion, int x0, int y0, int x1, int y1, int check, int captured)
{int found;
--- a/moonfish.h
+++ b/moonfish.h
@@ -173,9 +173,8 @@
/* note: 0 means false (i.e. not finished) */
int moonfish_finished(struct moonfish_chess *chess);
-/* returns whether the game ended due to respectively checkmate or stalemate */
-/* note: 0 means false */
+/* returns whether the game ended due to checkmate */
+/* note: 0 means false (i.e. no checkmate) */
int moonfish_checkmate(struct moonfish_chess *chess);
-int moonfish_stalemate(struct moonfish_chess *chess);
#endif
--
⑨