summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/game.h8
-rw-r--r--include/input.h3
2 files changed, 8 insertions, 3 deletions
diff --git a/include/game.h b/include/game.h
index 5ab589b..09e07e3 100644
--- a/include/game.h
+++ b/include/game.h
@@ -9,8 +9,14 @@
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
nihil fit ex nihilo