Coder Social home page Coder Social logo

gym-rle's Introduction

gym-rle

The Retro Learning Environment supports SNES (Super Nintendo Entertainment System) video games such as Mario and Mortal Kombat.

Installation

cd gym-rle
pip install -e .

Roms for the available games need to put in the gym_rle/envs/roms dir with lowercase separated names (e.g. mortal_kombat.sfc). You can see the list of supported games in gym_rle/__init__.py .

gym-rle's People

Contributors

nadavbh12 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gym-rle's Issues

Multithreading in gym-rle

Hello, i would like to know if its possible to create multiple instances of the gym-rle env, something like in this code:

import gym
import gym_rle

envs = [gym.make('MortalKombat-v0') for _ in range(2)]
envs[0].reset()
while True:
    action = 0
    envs[0].step(action)

error while starting the kernel

python 2.7
my code is

import gym
import gym_rle

env = gym.make('MortalKombat-v0')
env.reset()
for _ in range(1000):
    env.render()
    env.step(env.action_space.sample()) # take a random action

get an error. What should I do for Mortal Kombat launching and visualizing?

An error ocurred while starting the kernel
R.L.E: Retro Learning Environment (version 1.1.1)
[Based upon the Arcade Learning Environment (A.L.E)]
[Powered by LibRetro]
Use ‑help for help screen.
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_M_construct null not valid
R.L.E: Retro Learning Environment (version 1.1.1)
[Based upon the Arcade Learning Environment (A.L.E)]
[Powered by LibRetro]
Use ‑help for help screen.
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_M_construct null not valid
R.L.E: Retro Learning Environment (version 1.1.1)
[Based upon the Arcade Learning Environment (A.L.E)]
[Powered by LibRetro]
Use ‑help for help screen.
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_M_construct null not valid

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.