summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRaúl Benencia <rul@kalgan.cc>2015-03-31 16:20:39 -0300
committerRaúl Benencia <rul@kalgan.cc>2015-03-31 16:20:39 -0300
commitd8143db289b441562a69dcfa783d7d80c2f544c6 (patch)
tree928c22c4598a670019dbb1d31af687d59ba3ed27 /include
parenta9b35e6086ff71e351b3861aa897777e278a4059 (diff)
input_move instead of coordinates. Introduce game_is_move_valid()
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