From e465b5123ffeb5c360a963060e0eecc2ee3056f1 Mon Sep 17 00:00:00 2001 From: p57492168 <2577192526@qq.com> Date: Sat, 2 Jul 2022 11:09:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Palette/env/engine.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Palette/env/engine.py b/Palette/env/engine.py index 8dcc260..eb3bb8b 100644 --- a/Palette/env/engine.py +++ b/Palette/env/engine.py @@ -29,7 +29,7 @@ class SeaEnvEngine(object): ship_radius: int, ship_velocity: int, - sonar_spread_times: int, + sonar_spread_times: int, obstacles: dict, @@ -129,7 +129,6 @@ class SeaEnvEngine(object): cur_obstacle = self.create_rectangle_obstacle(x, y, width, height) self.obstacles.append(cur_obstacle) self.obstacles_w_h.append((width, height)) - # label the position of obstacles as -1 for i in range(x//self.field_size[0], (x+width)//self.field_size[0]): for j in range(y//self.field_size[1], (y+height)//self.field_size[1]): self.fields[i, self.fields.shape[1]-j-1] = -1