From d8143db289b441562a69dcfa783d7d80c2f544c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Benencia?= Date: Tue, 31 Mar 2015 16:20:39 -0300 Subject: input_move instead of coordinates. Introduce game_is_move_valid() --- include/game.h | 8 +++++++- include/input.h | 3 +-- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/game.h b/include/game.h index 5ab589b..09e07e3 100644 --- a/include/game.h +++ b/include/game.h @@ -8,9 +8,15 @@ */ Board game_loop(Board); +/* + * Check if a move is valid in the received board for the received player. + */ +int game_is_move_valid(Board, Color, Move); + + /* * Return 1 if the received player is checkmated. Returns 0 otherwise. */ -int game_is_checkmate(Board board, Color color); +int game_is_checkmate(Board, Color); #endif diff --git a/include/input.h b/include/input.h index 7e1bb3e..2581477 100644 --- a/include/input.h +++ b/include/input.h @@ -3,7 +3,6 @@ #include "types.h" -Coord input_orig_coord(); -Coord input_dest_coord(); +Move input_move(); #endif -- cgit v1.2.3