hisss.StandardBattleSnakeRewardConfig#
- class hisss.StandardBattleSnakeRewardConfig(living_reward=0.0, terminal_reward=1.0)[source]#
Bases:
BattleSnakeRewardConfigConfiguration 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_rewardThe reward given to a snake for surviving a turn.
terminal_rewardThe base reward given/taken when a snake wins/dies.