hisss.StandardBattleSnakeRewardConfig

hisss.StandardBattleSnakeRewardConfig#

class hisss.StandardBattleSnakeRewardConfig(living_reward=0.0, terminal_reward=1.0)[source]#

Bases: BattleSnakeRewardConfig

Configuration for the Standard BattleSnake reward function.

Assigns a negative terminal reward to players who died this turn. The last remaining player receives a positive terminal reward. Surviving players receive a constant living reward (if configured) while the game is ongoing.

__init__(living_reward=0.0, terminal_reward=1.0)#

Methods

__init__([living_reward, terminal_reward])

Attributes

living_reward

The reward given to a snake for surviving a turn.

terminal_reward

The base reward given/taken when a snake wins/dies.