Рет қаралды 1,667
A (realtime) TAS playing random-seed no-rotation on Jstris.
Thanks to Zoltán Bereczki for inspiring me to work on this!
The algorithm is pretty much the same as that used in the previously-uploaded NES Tetris TARTA ( • [TARTA] NES Tetris No ... ). There are two differences though:
1. Jstris uses 7-bag RNG.
2. Jstris has the Hold mechanism.
The differences didn't change the model a lot. I just added the information related to holding and RNG (that is, the current piece count modulo 7) to the input stack, and added the option of holding to the output action list.
The model achieves an average of 129.54 lines. It achieves 150 lines in about 33% of games, 175 in 19%, 200 in 9.6%, 225 in 3.8%, 250 in 1.1% and 275 in 0.3% of games. I was pretty lucky to get this on my 17th run.
I use raw keyboard events to control piece movements. It is hard to control soft drops (one lag can lead to over-dropping), so I wait for pieces to fall instead if a piece is close to its destination. This also leads to a great deviation in piece dropping times.
Source code: github.com/adrien1018/noro-te...