forked from snapshot112/minigame-menu
MULTITHREADED FOR EPICNESSSSSS
This commit is contained in:
@@ -16,6 +16,7 @@ typedef struct {
|
||||
int y;
|
||||
} coordinate;
|
||||
|
||||
// Start at 1 since the color 0 is reserved for no_color.
|
||||
typedef enum {
|
||||
BLACK = 1,
|
||||
WHITE = 2,
|
||||
@@ -32,6 +33,19 @@ typedef struct {
|
||||
rooster *game_map;
|
||||
} game_maps;
|
||||
|
||||
/*
|
||||
* Checks if 2 coordinates are the same.
|
||||
*
|
||||
* Input:
|
||||
* a: coordinate 1
|
||||
* b: coordinate 2
|
||||
*
|
||||
* Returns:
|
||||
* If they point to the same location: 1
|
||||
* Otherwise: 0
|
||||
*/
|
||||
int same_coordinate(coordinate a, coordinate b);
|
||||
|
||||
/*
|
||||
* A proper modulo function.
|
||||
* The one provided by c: '%' doesn't work according to the mathematical definition.
|
||||
|
||||
Reference in New Issue
Block a user