summaryrefslogtreecommitdiff
path: root/include/game.h
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/game.h
parenta9b35e6086ff71e351b3861aa897777e278a4059 (diff)
input_move instead of coordinates. Introduce game_is_move_valid()
Diffstat (limited to 'include/game.h')
-rw-r--r--include/game.h8
1 files changed, 7 insertions, 1 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
nihil fit ex nihilo