From c81bc656c6226883b7e3cae5269532123c7dea76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Benencia?= Date: Tue, 31 Mar 2015 15:18:25 -0300 Subject: add move fields getters --- lib/move.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'lib/move.c') diff --git a/lib/move.c b/lib/move.c index 3eefcdd..74a8eae 100644 --- a/lib/move.c +++ b/lib/move.c @@ -11,7 +11,15 @@ Move move_init(Coord orig, Coord dest) { m.dest = dest; return m; -} +} + +Coord move_get_orig(Move m) { + return m.orig; +} + +Coord move_get_dest(Move m) { + return m.dest; +} /* * Returns 1 if Move is a valid chess movement. -- cgit v1.2.3