timotheeg / nestrischamps

A web-based OCR and restreamer system for NES Classic Tetris players
MIT License
48 stars 12 forks source link

Unpack gameStart & gameModeState #161

Closed zohassadar closed 10 months ago

zohassadar commented 10 months ago

Currently this data does not exist, but getting this change in so that when the data is introduced it doesn't break anything.

gameModeState is a value 0-8. During game play this will be 8 and at game over will be 3. The values control which branch is taken here

gameStart will be a 4 bit counter that will increment in the same function where the stats and playfield are initialized.

zohassadar commented 10 months ago

ed2ntc update: https://github.com/zohassadar/TetrisGYM/commit/023809641c028438ed962b929d98b130ff7347ac

Using game_start in the python version: https://github.com/zohassadar/ntcpycon/commit/8b8c1151a491bdc68fbc3162840197c45f59390f

timotheeg commented 10 months ago

Thanks for that! I'll merge asap and make NTC use the new values!

timotheeg commented 9 months ago

This has been released to prod