penguins  1.0.0
BotParameters Struct Reference

Detailed Description

Various parameters for the bot algorithm.

Mainly used for configuring the bot to be a dumber opponent for testing.

Definition at line 44 of file bot.h.

Data Fields

BotPlacementStrategy placement_strategy
 BOT_PLACEMENT_SMART by default. More...
 
int placement_scan_area
 An area surrounding the placement tile which bot_rate_placement considers. More...
 
BotMovementStrategy movement_strategy
 BOT_MOVEMENT_SMART by default. More...
 
int max_move_length
 The maximum number of tiles allowed for bot's moves, must be positive. More...
 
int recursion_limit
 The maximum recursion depth, must be positive. Zero means no recursion. More...
 
int junction_check_recursion_limit
 The maximum recursion depth at which junction checks are performed. More...
 

Related Functions

(Note that these are not member functions.)

void init_bot_parameters (BotParameters *self)
 Initializes all fields of the given BotParameters to default values. More...
 

Field Documentation

◆ placement_strategy

BotPlacementStrategy BotParameters::placement_strategy

BOT_PLACEMENT_SMART by default.

Definition at line 46 of file bot.h.

Referenced by parse_arguments().

◆ placement_scan_area

int BotParameters::placement_scan_area

An area surrounding the placement tile which bot_rate_placement considers.

Definition at line 48 of file bot.h.

Referenced by parse_arguments().

◆ movement_strategy

BotMovementStrategy BotParameters::movement_strategy

BOT_MOVEMENT_SMART by default.

Definition at line 50 of file bot.h.

Referenced by parse_arguments().

◆ max_move_length

int BotParameters::max_move_length

The maximum number of tiles allowed for bot's moves, must be positive.

Definition at line 52 of file bot.h.

Referenced by parse_arguments().

◆ recursion_limit

int BotParameters::recursion_limit

The maximum recursion depth, must be positive. Zero means no recursion.

Definition at line 54 of file bot.h.

Referenced by parse_arguments().

◆ junction_check_recursion_limit

int BotParameters::junction_check_recursion_limit

The maximum recursion depth at which junction checks are performed.

Definition at line 56 of file bot.h.

Referenced by parse_arguments().

Friends And Related Function Documentation

◆ init_bot_parameters()

void init_bot_parameters ( BotParameters self)
related

Initializes all fields of the given BotParameters to default values.

Definition at line 31 of file bot.c.

Referenced by init_arguments().


The documentation for this struct was generated from the following files: