Skip to main content

Chip 8 Emulation for AI

Project description

Chip-Gr8

Build status

Run

To run the python module (make sure you use some version of python 3, preferably 3.6 or later):

python -m chipgr8

To load a ROM and run it (where ROM is either a path to a ROM or the start of a name)

python -m chipgr8 -r ROM
 # eg.
python -m chipgr8 -r pong 

To disassemble a ROM

python -m chipgr8 -d ROM -o OUTFILE

To assemble a ROM

python -m chipgr8 -a SRC -o OUTFILE

For more commandline options see

python -m chipgr8 -h

Requirements

To install run

python setupy.py install

Changing the VM Struct

To update the VM struct used in the C and python code modify defineChip8VMStruct.py and then run

python ./defineChip8VMStruct.py

Build Using mekpie

To build the c code you will need to have mekpie installed

pip install mekpie

To build the shared library prior to running the python script:

mekpie build

To run the c tests run

mekpie test

Build Using Make

make

Performance Problems on Mac

From StackOverflow

  1. Run your pygame program
  2. In the dock you will see a snake with controllers in his mouth. Right click him.
  3. Go to Options and click "Show in Finder"
  4. Finder will open and you will see a the python application.(Mine was in the shape of rocket with the idle symbol on it.)
  5. Right click the python application and click "Get Info".
  6. Check the box "Open in Low Resolution" and it should now run at around 60fps.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chipgr8-0.0.2.tar.gz (62.4 kB view hashes)

Uploaded Source

Built Distributions

chipgr8-0.0.2-py3.6-macosx-10.9-x86_64.egg (119.5 kB view hashes)

Uploaded Source

chipgr8-0.0.2-cp37-cp37m-win_amd64.whl (75.0 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

chipgr8-0.0.2-cp37-cp37m-win32.whl (74.3 kB view hashes)

Uploaded CPython 3.7m Windows x86

chipgr8-0.0.2-cp36-cp36m-win_amd64.whl (75.0 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

chipgr8-0.0.2-cp36-cp36m-win32.whl (74.3 kB view hashes)

Uploaded CPython 3.6m Windows x86

chipgr8-0.0.2-cp36-cp36m-macosx_10_9_x86_64.whl (72.5 kB view hashes)

Uploaded CPython 3.6m macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page