mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-01 06:07:08 +00:00
Improved taxi documentation (#2777)
* Improved documentation to specify decode state space * Improve taxi documentation
This commit is contained in:
committed by
GitHub
parent
0c78ea5964
commit
4ecc2ad35a
@@ -66,6 +66,12 @@ class TaxiEnv(Env):
|
||||
successful episodes, when both the passenger and the taxi are at the destination.
|
||||
This gives a total of 404 reachable discrete states.
|
||||
|
||||
Each state space is represented by the tuple:
|
||||
(taxi_row, taxi_col, passenger_location, destination)
|
||||
|
||||
An observation is an integer that encodes the corresponding state.
|
||||
The state tuple can then be decoded with the "decode" method.
|
||||
|
||||
Passenger locations:
|
||||
- 0: R(ed)
|
||||
- 1: G(reen)
|
||||
@@ -84,9 +90,6 @@ class TaxiEnv(Env):
|
||||
- +20 delivering passenger.
|
||||
- -10 executing "pickup" and "drop-off" actions illegally.
|
||||
|
||||
state space is represented by:
|
||||
(taxi_row, taxi_col, passenger_location, destination)
|
||||
|
||||
### Arguments
|
||||
|
||||
```
|
||||
|
Reference in New Issue
Block a user