Skip to content

Instantly share code, notes, and snippets.

@WhatIThinkAbout
Created July 24, 2022 11:33
Show Gist options
  • Select an option

  • Save WhatIThinkAbout/158660204cb19db7c651906272d9ce2b to your computer and use it in GitHub Desktop.

Select an option

Save WhatIThinkAbout/158660204cb19db7c651906272d9ce2b to your computer and use it in GitHub Desktop.
setup = { 'width': 8,
'height': 5,
'add_maze': True,
'maze_seed': 42,
'end': [5,4]
}
walls = [((2, 0),'E'), # remove the east wall at (2,0)
((2, 2),'E'), # remove the east wall at (2,2)
((3, 2),'E'), # remove the east wall at (3,2)
((5, 2),'E')] # add an east wall at (5,2)
setup['walls'] = walls
puddles = [((2,2),1),
((2,0),1),
((7,3),1),
((3,2),2),
((5,1),2)]
setup['puddles'] = puddles
setup['grid'] = {'theme': 'black_orange'}
setup['side_panel'] = {'width':200}
env = BabyRobotEnv_v6(**setup)
env.render()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment