DEV Community

Discussion on: 2048 game remake

sinni800 profile image
sinni800 • Edited on

I found a bug too, I had two 8s at the bottom right corner and no matter how much I hit down, they wouldn't merge. Then I hit up and a 4 came out from beneath that 8. Then I wiggled a bit and I got a game over on this screen: (I removed the game over box in inspector)

I guess if the source code wasn't obfuscated to hell I would be able to tell you what

TypeError: _0xa7b71b is undefined
7 app.18812406.js:1:34961
TypeError: _0x560f73 is undefined
2 app.18812406.js:1:30444
TypeError: _0xa7b71b is undefined

Would mean :)

EDIT: Video ignore the background sound, please.. It's just music

EDIT2: It can be easily triggered by hitting two arrow keys at the same time.

I think we got a race condition or some other concurrency artifact here?

Were it open source, people could find the error together. ... It would be a good project to make open source.

bairrada97 profile image
bairrada97 Author • Edited on

Thank you for complete Detail of the bug.

The bug It's caused when you play faster than the slider animation, my animation has 75ms so if you play faster than that It will cause empty tiles looking that are filled.

The errors you got on console is just a variable that I'ts not been in use but It's there, I have to clean up, but the error on console don't interfere with the game