summaryrefslogtreecommitdiff
path: root/include/move.h
blob: 3844fe26e7c628cdb8849c13119a881af1a7e5ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _MOVE
#define _MOVE

#include "types.h"

/*
 * Initialize a Move
 */
Move move_init(Coord, Coord);

Coord move_get_orig(Move);
Coord move_get_dest(Move);

/*
 * Returns 1 if Move is a valid chess movement.
 */
int move_is_valid(Move);

#endif
nihil fit ex nihilo