Skip to content

Commit

Permalink
Update taxi.py (openai#1943)
Browse files Browse the repository at this point in the history
* Update taxi.py

Clarify reward comments

* Update taxi.py
  • Loading branch information
mimoralea authored Jun 19, 2020
1 parent 2d9652f commit 5cbb9c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gym/envs/toy_text/taxi.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ class TaxiEnv(discrete.DiscreteEnv):
- 5: dropoff passenger
Rewards:
There is a reward of -1 for each action and an additional reward of +20 for delivering the passenger. There is a reward of -10 for executing actions "pickup" and "dropoff" illegally.
There is a default per-step reward of -1,
except for delivering the passenger, which is +20,
or executing "pickup" and "drop-off" actions illegally, which is -10.
Rendering:
Expand Down

0 comments on commit 5cbb9c3

Please sign in to comment.