Module game_options

Module game_options 

Source

MacrosΒ§

define_args_withs πŸ”’
To be able to iterate over range in a meta-way, see in table parameter very useful

StructsΒ§

GameOptions
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 πŸ”’