Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Gymnasium related changes #127

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gym_super_mario_bros/_app/cli.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Super Mario Bros for OpenAI Gym."""
import argparse
import sys
import gym
import gymnasium as gym
from nes_py.wrappers import JoypadSpace
from nes_py.app.play_human import play_human
from nes_py.app.play_random import play_random
Expand Down
2 changes: 1 addition & 1 deletion gym_super_mario_bros/_registration.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Registration code of Gym environments in this package."""
import gym
import gymnasium as gym


def _register_mario_env(id, is_random=False, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion gym_super_mario_bros/smb_random_stages_env.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""An OpenAI Gym Super Mario Bros. environment that randomly selects levels."""
import gym
import gymnasium as gym
import numpy as np
from .smb_env import SuperMarioBrosEnv

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
gym>=0.10.9
gymnasium
matplotlib>=2.0.2
nes-py>=4.0.0
numpy>=1.14.2
Expand Down