From 761cc9917db140d5e0aefe8776b091b4f56a3389 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sun, 5 May 2024 17:18:20 +0200 Subject: Fixed the function declarations --- FICS/movecheck.h | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/FICS/movecheck.h b/FICS/movecheck.h index 53a1712..ca7cae1 100644 --- a/FICS/movecheck.h +++ b/FICS/movecheck.h @@ -46,16 +46,15 @@ #include "board.h" #endif -extern int is_move(char *); -extern int parse_move(char *, game_state_t *, move_t *, int); -extern int execute_move(game_state_t *, move_t *, int); -extern int backup_move(int, int); - -/* Some useful chess utilities */ -extern int NextPieceLoop(board_t, int *, int *, int); -extern int InitPieceLoop(board_t, int *, int *, int); -extern int legal_move(game_state_t *, int, int, int, int); -extern int legal_andcheck_move(game_state_t *, int, int, int, int); -extern int in_check(game_state_t *); +extern int InitPieceLoop(board_t, int *, int *, int); +extern int NextPieceLoop(board_t, int *, int *, int); + +extern int backup_move(int, int); +extern int execute_move(game_state_t *, move_t *, int); +extern int in_check(game_state_t *); +extern int is_move(char *); +extern int legal_andcheck_move(game_state_t *, int, int, int, int); +extern int legal_move(game_state_t *, int, int, int, int); +extern int parse_move(char *, game_state_t *, move_t *, int); #endif /* _MOVECHECK_H */ -- cgit v1.2.3