Skip to content

Commit

Permalink
Changed some default values, and documented them
Browse files Browse the repository at this point in the history
  • Loading branch information
bpiwowar committed Oct 27, 2023
1 parent b897f69 commit a456293
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ After importing `pystk2_gymnasium`, the following environments are available:
- `difficulty` is the difficulty of the other bots (0 to 2, default to 2)
- `supertuxkart-simple-v0` is a simplified environment with fixed number of observations for paths (controlled by `state_paths`, default 5), items (`state_items`, default 5), karts (`state_karts`, default 5)
- `supertuxkart-flattened-v0` has observation and action spaces simplified at the maximum (only `discrete` and `continuous` keys)
- `supertuxkart-flattened-multidiscrete-v0` is like the previous one, but with fully multi-discrete actions
- `supertuxkart-flattened-multidiscrete-v0` is like the previous one, but with fully multi-discrete actions. `acceleration_steps` and `steer_steps` (default to 5) control the number of discrete values for acceleration and steering respectively.
- `supertuxkart-flattened-discrete-v0` is like the previous one, but with fully discretized actions

The reward is the distance traveled.
Expand Down
2 changes: 1 addition & 1 deletion src/pystk2_gymnasium/envs.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ def continuous(self, value: int):

class DiscreteActionSTKRaceEnv(SimpleSTKRaceEnv):
# Wraps the actions
def __init__(self, acceleration_steps=10, steer_steps=10, **kwargs):
def __init__(self, acceleration_steps=5, steer_steps=5, **kwargs):
super().__init__(**kwargs)

self.d_acceleration = Discretizer(
Expand Down

0 comments on commit a456293

Please sign in to comment.