gym-sokoban icon indicating copy to clipboard operation
gym-sokoban copied to clipboard

updates for basic support of Gymnasium (+ updates to rendering approach)

Open SimonOuellette35 opened this issue 1 year ago • 2 comments

  • if you're interested, here is a pull request that provides basic support for Gymnasium. I had to modify how rendering works by leveraging the HumanRendering wrapper in Gymnasium, which in turn forced me to somewhat redesign how selection of rendering mode works (see updates to the README)
  • Caveat 1: this probably breaks pre-gymnasium code (haven't tested it)
  • Caveat 2: 'raw' rendering mode no longer supported.

SimonOuellette35 avatar May 24 '23 15:05 SimonOuellette35

You need to change from gym.envs.registration import register to from gymnasium.envs.registration import register in __init__.py.

rhaps0dy avatar Oct 26 '23 19:10 rhaps0dy

You need to change from gym.envs.registration import register to from gymnasium.envs.registration import register in __init__.py.

Done!

SimonOuellette35 avatar Nov 01 '23 15:11 SimonOuellette35