Chip 8 Emulation for AI
Project description
Chip-Gr8
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
- Run your pygame program
- In the dock you will see a snake with controllers in his mouth. Right click him.
- Go to Options and click "Show in Finder"
- Finder will open and you will see a the python application.(Mine was in the shape of rocket with the idle symbol on it.)
- Right click the python application and click "Get Info".
- 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
Built Distributions
File details
Details for the file chipgr8-0.0.2.tar.gz
.
File metadata
- Download URL: chipgr8-0.0.2.tar.gz
- Upload date:
- Size: 62.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47008f8a3e1a178fd7f9c873811a49cb3a9a8eaf281b3c848b9d2c051a6b1b60 |
|
MD5 | 913352ceabc42bfc9c0d5e28a72c0ff2 |
|
BLAKE2b-256 | 801a18e45996440e936ed4c9c435e03e1cd125fe2f66cad2410dacf93e7307b3 |
File details
Details for the file chipgr8-0.0.2-py3.6-macosx-10.9-x86_64.egg
.
File metadata
- Download URL: chipgr8-0.0.2-py3.6-macosx-10.9-x86_64.egg
- Upload date:
- Size: 119.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 650c7db9b5c0e60e827500f0da81321ac3ff4642a2e1482f7b367302fb05c8bb |
|
MD5 | 4fb68ee945143243e49b664856505f8d |
|
BLAKE2b-256 | 12902696afb1c1ec4a9ef4c15b4143f8ddcc09c49c2f57e39989102feb052e96 |
File details
Details for the file chipgr8-0.0.2-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: chipgr8-0.0.2-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 75.0 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f2d0875693c06e5193869f1222bf4f47f6df974b11a0ec1efc01ed5d316b982 |
|
MD5 | 327ce15f863959c001ea04b2731604dd |
|
BLAKE2b-256 | 55bfad61081ef5fddf3314e3745f04c574089143a21ee9c0e713b28b73ba3530 |
File details
Details for the file chipgr8-0.0.2-cp37-cp37m-win32.whl
.
File metadata
- Download URL: chipgr8-0.0.2-cp37-cp37m-win32.whl
- Upload date:
- Size: 74.3 kB
- Tags: CPython 3.7m, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cad058479a0f71262908754b7018b2b31409f0a47b8270e5e0e9ff8d7dc0bc77 |
|
MD5 | bbc864c668552a26c0f3094c314221aa |
|
BLAKE2b-256 | fdae53ebe2ff17d6d5147decf91dc2ee8f3d67ab52f8fb5ffe605077b1453a90 |
File details
Details for the file chipgr8-0.0.2-cp36-cp36m-win_amd64.whl
.
File metadata
- Download URL: chipgr8-0.0.2-cp36-cp36m-win_amd64.whl
- Upload date:
- Size: 75.0 kB
- Tags: CPython 3.6m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b21f35d88ab177670c9a20dbe6e568cf59b2d283f2f2cbbf6bdb7d1e6082d902 |
|
MD5 | f52a7fceaae45e7fb0690471f234bb0d |
|
BLAKE2b-256 | 7564a3ff43ea8cd4282a1a2112ef5026a23bae400069703d7e828f5db5c95e0f |
File details
Details for the file chipgr8-0.0.2-cp36-cp36m-win32.whl
.
File metadata
- Download URL: chipgr8-0.0.2-cp36-cp36m-win32.whl
- Upload date:
- Size: 74.3 kB
- Tags: CPython 3.6m, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9292ffa58c81a8b126f7d3bbc7fd74fefc6ee6983183fc9828600cd34b40e685 |
|
MD5 | 8b8d31300332397ebf2579b94b40d7b8 |
|
BLAKE2b-256 | 29ae1f7f4dc44468d88d5e7316a8b45ffca645d6fa9f827f36903666641a1c44 |
File details
Details for the file chipgr8-0.0.2-cp36-cp36m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: chipgr8-0.0.2-cp36-cp36m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 72.5 kB
- Tags: CPython 3.6m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d0a208636650f3f61a3ef04a24099982b445faf65d79ceaf97fd751b4e1a70a |
|
MD5 | d6be184e503a3b6c84bb367a5c79ead0 |
|
BLAKE2b-256 | cf532471c71e572d55d6d5d51678efa9888abf506b089ea67ed228bac49ffb02 |