summaryrefslogtreecommitdiff
path: root/include/move.h
diff options
context:
space:
mode:
authorRaúl Benencia <rul@kalgan.cc>2015-03-31 15:13:12 -0300
committerRaúl Benencia <rul@kalgan.cc>2015-03-31 15:13:12 -0300
commit85858c2f6dc624c6c32b9c59b187b378cfc89d9e (patch)
treee7f49278d897ff39964a52337ad9ea3b7f871efd /include/move.h
parentc695131d78839bf96cf9731df8a2a0b07cc0e19f (diff)
add move type
Diffstat (limited to 'include/move.h')
-rw-r--r--include/move.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/move.h b/include/move.h
new file mode 100644
index 0000000..9f61775
--- /dev/null
+++ b/include/move.h
@@ -0,0 +1,16 @@
+#ifndef _MOVE
+#define _MOVE
+
+#include "types.h"
+
+/*
+ * Initialize a Move
+ */
+Move move_init(Coord, Coord);
+
+/*
+ * Returns 1 if Move is a valid chess movement.
+ */
+int move_is_valid(Move);
+
+#endif
nihil fit ex nihilo