-
Notifications
You must be signed in to change notification settings - Fork 0
/
macros.h
46 lines (40 loc) · 1.16 KB
/
macros.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef LIBS_GAME_MACROS_H_INCLUDED
#define LIBS_GAME_MACROS_H_INCLUDED
/**
* @def ALIVE_CELL
* @brief Represents a live cell.
*
* @warning The value of `ALIVE_CELL` must be a single character.
*/
#define ALIVE_CELL 'o'
/**
* @def ALIVE_CELL_NG
* @brief Represents a cell that is going to be alive in the next generation.
*
* @warning The value of `ALIVE_CELL_NG` must be a single character and must not be equal to
* `ALIVE_CELL`, `DEAD_CELL`, or `DEAD_CELL_NG` macros.
*/
#define ALIVE_CELL_NG '1'
/**
* @def DEAD_CELL
* @brief Represents a dead cell.
*
* @warning The value of `DEAD_CELL` must be a single character.
*/
#define DEAD_CELL ' '
/**
* @def DEAD_CELL_NG
* @brief Represents a cell that is going to be dead in the next generation.
*
* @warning The value of `DEAD_CELL_NG` must be a single character and must not be equal to
* `ALIVE_CELL`, `ALIVE_CELL_NG`, or `DEAD_CELL` macros.
*/
#define DEAD_CELL_NG '0'
/**
* @def NEIGHBORHOOD_RADIUS
* @brief Defines the radius of the neighborhood.
*
* @warning The value of `NEIGHBORHOOD_RADIUS` must be greater or equal to 1.
*/
#define NEIGHBORHOOD_RADIUS 1
#endif // LIBS_GAME_MACROS_H_INCLUDED