gabrielecirulli / 2048

The source code for 2048
https://play2048.co
MIT License
12.16k stars 16.96k forks source link

Added browser console log feature with details of newly generated tiles #477

Closed jaeheonshim closed 4 years ago

jaeheonshim commented 5 years ago

I thought that people might be interested in seeing what happens behind the scenes in the code, so created a few lines of code that logs information (value, generated location) of newly generated tiles. If you like it, I'd be happy to make further logs such as final score and biggest tile at game reset or when you lose. You added serialize functions to the game objects, so I just took advantage of those.