- Created Sunday, May 22nd 2016 @ 15:33:55
I've come to realize that this is possible, and has been done on other Tetris games. Obviously, if a bot can predict what piece comes after the next piece, it's a tremendous advantage.
- Created Sunday, May 22nd 2016 @ 16:38:24
I guess this would be against rules. And purely technically I doubt this is possible. With big probability next piece is generated like rand() mod 7. Just observing rand mod 7 it is very hard to predict what next rand() will return, because mod operation looses a lot of information.
An example that java's rand is easy to break in general. http://franklinta.com/2014/08/31/predicting-the-next-math-random-in-java/ But in our case it would me much more difficult.
- Updated Sunday, May 22nd 2016 @ 18:41:07
Hmm yeah I wonder if this is possible. You can see how random pieces are generated from the engine source code in the file ShapeType.java. I'm not too familiar with crypto stuff but they seem to be using a more sophisticated Random number generator than the traditional Math.random().
- Created Sunday, May 22nd 2016 @ 19:32:19
with other generators it is even more complex. For example, for Mersenne twister you need a sequence of 600+ generated numbers in order to restore generator state (so it would be completely safe for the purpose of this game (It could be theoretically somewhat unsafe if generator is initialized using current time, but its just theory. In practice its easier to become hogeris than to crack that generator)).
It is very very good that organizers are using more sophisticated generator than Math.random.
- Created Sunday, May 22nd 2016 @ 19:42:33
Furthermore, I would expect that the randomiser is not reset every game, so also a educated guess (in case of a time based seed) should than be extremely difficult. And if you did, it would be hard to keep it unnoticed,
Personally, I would not like to win that way, but that's just me.