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

Access Game Memory Data and Frames #160

Closed
rubencg195 opened this issue Jun 9, 2018 · 1 comment
Closed

Access Game Memory Data and Frames #160

rubencg195 opened this issue Jun 9, 2018 · 1 comment

Comments

@rubencg195
Copy link

I would like to apply a machine learning algorithm to control the game based on its input but for that, I will need to have access to the pixel frames and the data of the game to see if the level is complete and that way give a reward to the algorithm. Is there a way to access that data?

image

@bfirsh
Copy link
Owner

bfirsh commented Jun 10, 2018

You can use the onFrame callback to get the frames, and nes.cpu.mem is the memory contents. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants