From 85858c2f6dc624c6c32b9c59b187b378cfc89d9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Benencia?= Date: Tue, 31 Mar 2015 15:13:12 -0300 Subject: add move type --- lib/move.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 lib/move.c (limited to 'lib') 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; +} + -- cgit v1.2.3