summaryrefslogtreecommitdiff
path: root/lib/move.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/move.c')
-rw-r--r--lib/move.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/move.c b/lib/move.c
new file mode 100644
index 0000000..3eefcdd
--- /dev/null
+++ b/lib/move.c
@@ -0,0 +1,22 @@
+#include "move.h"
+
+
+/*
+ * Initialize a Move
+ */
+Move move_init(Coord orig, Coord dest) {
+ Move m;
+
+ m.orig = orig;
+ m.dest = dest;
+
+ return m;
+}
+
+/*
+ * Returns 1 if Move is a valid chess movement.
+ */
+int move_is_valid(Move m) {
+ return 1;
+}
+
nihil fit ex nihilo