Skip to content

Commit 5d49aa0

Browse files
Change the default screen size to 640 (#340)
Co-authored-by: Mark Towers <[email protected]>
1 parent 9203791 commit 5d49aa0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

minigrid/minigrid_env.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def __init__(
4141
see_through_walls: bool = False,
4242
agent_view_size: int = 7,
4343
render_mode: str | None = None,
44-
screen_size: int | None = 1,
44+
screen_size: int | None = 640,
4545
highlight: bool = True,
4646
tile_size: int = TILE_PIXELS,
4747
agent_pov: bool = False,
@@ -197,7 +197,6 @@ def __str__(self):
197197
output = ""
198198

199199
for j in range(self.grid.height):
200-
201200
for i in range(self.grid.width):
202201
if i == self.agent_pos[0] and j == self.agent_pos[1]:
203202
output += 2 * AGENT_DIR_TO_STR[self.agent_dir]
@@ -731,7 +730,6 @@ def get_frame(
731730
return self.get_full_render(highlight, tile_size)
732731

733732
def render(self):
734-
735733
img = self.get_frame(self.highlight, self.tile_size, self.agent_pov)
736734

737735
if self.render_mode == "human":

0 commit comments

Comments
 (0)