Change end-of-episode in CarRacing to termination as opposed to truncation (#813)

This commit is contained in:
Ariel Kwiatkowski
2024-08-09 11:30:38 +02:00
committed by GitHub
parent 1a92702f17
commit c9e2957435
12 changed files with 32 additions and 30 deletions

View File

@@ -54,7 +54,7 @@ def test_carracing_domain_randomize():
CarRacing DomainRandomize should have different colours at every reset.
However, it should have same colours when `options={"randomize": False}` is given to reset.
"""
env: CarRacing = gym.make("CarRacing-v2", domain_randomize=True).unwrapped
env: CarRacing = gym.make("CarRacing-v3", domain_randomize=True).unwrapped
road_color = env.road_color
bg_color = env.bg_color