MacrosΒ§
- define_
args_ πwiths - To be able to iterate over range in a meta-way, see in table parameter very useful
StructsΒ§
- Game
Options - Structure holding all the configuration parameters for the game
ConstantsΒ§
- DISPLAYABLE_
EMOJI - INI_
POSITION - Initial position of the snakeβs head at the start of the game
- LIFE π
- MAX_
EMOJI_ πBY_ LINE_ COUNT - NB_
OF_ πFRUITS - ONLY_
FOR_ CLI_ PARAMETERS - PARAMS_
HEADER π - PRESETS π
- SNAKE_
LENGTH π - define a const to avoid str errors
FunctionsΒ§
- clamp_
to π - default_
false π - default_
true π - get_
parameter_ range - Returns the valid range for the parameter in O(1) or None
- get_
parameter_ πrange_ parser - Get a clap value parser for a specific parameter or the default range of 1..99
- pretty π