From 78dea301eab041ec0844c400471bc5bcf1c56041 Mon Sep 17 00:00:00 2001 From: pechvi Date: Fri, 21 Mar 2025 15:13:52 +0100 Subject: [PATCH 1/2] fix documentation of car-racing continuous argument --- gymnasium/envs/box2d/car_racing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gymnasium/envs/box2d/car_racing.py b/gymnasium/envs/box2d/car_racing.py index a989467e38..ffab1ca4b9 100644 --- a/gymnasium/envs/box2d/car_racing.py +++ b/gymnasium/envs/box2d/car_racing.py @@ -165,7 +165,7 @@ class CarRacing(gym.Env, EzPickle): * `domain_randomize=False` enables the domain randomized variant of the environment. In this scenario, the background and track colours are different on every reset. - * `continuous=True` converts the environment to use discrete action space. + * `continuous=False` converts the environment to use discrete action space. The discrete action space has 5 actions: [do nothing, left, right, gas, brake]. ## Reset Arguments From 2f045e91e7346fc96cac3bea5e833d0026712aac Mon Sep 17 00:00:00 2001 From: Mark Towers Date: Wed, 2 Apr 2025 21:21:37 +0100 Subject: [PATCH 2/2] Update car_racing.py --- gymnasium/envs/box2d/car_racing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gymnasium/envs/box2d/car_racing.py b/gymnasium/envs/box2d/car_racing.py index ffab1ca4b9..fa4673686c 100644 --- a/gymnasium/envs/box2d/car_racing.py +++ b/gymnasium/envs/box2d/car_racing.py @@ -165,8 +165,8 @@ class CarRacing(gym.Env, EzPickle): * `domain_randomize=False` enables the domain randomized variant of the environment. In this scenario, the background and track colours are different on every reset. - * `continuous=False` converts the environment to use discrete action space. - The discrete action space has 5 actions: [do nothing, left, right, gas, brake]. + * `continuous=True` specifies if the agent has continuous (true) or discrete (false) actions. + See action space section for a description of each. ## Reset Arguments