summaryrefslogtreecommitdiff
path: root/lib/move.c
blob: fa51126ededcfbff9d6a29d0965d81f5731fe237 (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;
}

Coord move_get_orig(Move m) {
    return m.orig;
}

Coord move_get_dest(Move m) {
    return m.dest;
}
nihil fit ex nihilo