mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-23 15:04:20 +00:00
Fencepost bug on kellycoinflip observation space
This commit is contained in:
@@ -12,8 +12,8 @@ class KellyCoinflipEnv(gym.Env):
|
||||
|
||||
self.action_space = spaces.Discrete(maxWealth*100) # betting in penny increments
|
||||
self.observation_space = spaces.Tuple((
|
||||
spaces.Discrete(maxWealth*100), # (w,b)
|
||||
spaces.Discrete(maxRounds)))
|
||||
spaces.Discrete(maxWealth*100+1), # (w,b)
|
||||
spaces.Discrete(maxRounds+1)))
|
||||
self.reward_range = (0, maxWealth)
|
||||
self.edge = edge
|
||||
self.wealth = initialWealth
|
||||
|
Reference in New Issue
Block a user