mirror of
https://github.com/Tha14/toxic.git
synced 2025-06-29 14:56:44 +02:00
Begin implementing chess
This commit is contained in:
@ -32,7 +32,7 @@ typedef struct Coords {
|
||||
|
||||
// don't change these
|
||||
typedef enum Direction {
|
||||
NORTH = 0,
|
||||
NORTH = 0u,
|
||||
SOUTH = 1,
|
||||
EAST = 3,
|
||||
WEST = 4,
|
||||
@ -60,7 +60,7 @@ typedef time_t TIME_S;
|
||||
/*
|
||||
* Return true if dir is a valid Direction.
|
||||
*/
|
||||
#define GAME_UTIL_DIRECTION_VALID(dir)(((dir) >= 0) && ((dir) < (INVALID_DIRECTION)))
|
||||
#define GAME_UTIL_DIRECTION_VALID(dir)((dir) < (INVALID_DIRECTION))
|
||||
|
||||
/*
|
||||
* Returns cardinal direction mapped to `key`.
|
||||
|
Reference in New Issue
Block a user