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

Tetris support #93

Merged
merged 5 commits into from
Aug 15, 2015
Merged

Tetris support #93

merged 5 commits into from
Aug 15, 2015

Conversation

udibr
Copy link
Contributor

@udibr udibr commented Aug 12, 2015

I've added two changes I was missing (whem moving from master to dev)
hope it is working now.

int y = readRam(&system, 114);
reward_t score = 1 * (x & 0x000F) + 10 * ((x & 0x00F0) >> 4) + 100 * (y & 0x000F);
if (score > m_score) {
std::cerr << "Score=" << score << std::endl;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the printout.

@mgbellemare
Copy link
Contributor

Tetris support looks good, save for the few comments I made in the other PR (please address).

@udibr
Copy link
Contributor Author

udibr commented Aug 13, 2015

(hopefully) I addressed all the issues regarding Tetris. If you want it to be called Tetris26 and not Tetris then I need to change the class names etc...

@mgbellemare
Copy link
Contributor

LGTM. One thing I noticed is that the tetromino sequence is fixed and cyclical. I suspect randomly setting the CPU registers doesn't fix this beyond randomizing where you start in the sequence.

mgbellemare added a commit that referenced this pull request Aug 15, 2015
@mgbellemare mgbellemare merged commit 9613f48 into Farama-Foundation:dev Aug 15, 2015
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

Successfully merging this pull request may close these issues.

None yet

2 participants