summaryrefslogtreecommitdiff
path: root/lib/move.c
blob: 3eefcdd353c3db42899295f3fff6dab1b3b384bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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