Playing Sonic with AI

Since Gym and Retro Gym run only on some version of python we need to make sure we have the proper version of python.

The easist way to do this is to install annoconda and make a virtual enviornment.

Running this command will make sure you are running the correct version of python.

$ conda create --name gym36 python=3.6 

Activating the enviornment

$ conda activate gym36 

In order to get this project running you first need to install the dependencies:

$ pip install -r requirements.txt

The next step is to find your LEGAL copy of Sonic the Hedgehog.

You will need to make sure your rom is placed in the correct folder for your game. In my case once retro is installed it will be located in

$ [your hard drive] retro/retro/data/stable/SonicTheHedgehog-Genesis

Once you have your copy of Sonic the Hedgehog you can run the sonic.py file.

$ python sonic.py

For informaiton on this or guidance check out these resources here:

  1. Open AI Getting Started
  2. Open AI Retro Github
  3. Neat Python
  4. Sonic Steam Link