I have been addicted to the game 2048 by Estoty Entertainment Lab on my droid phone for a while, and decided that I had to try to code my own version. It was much harder than I thought it would be!
To play the game (for those of you not yet addicted) you use the arrow keys to slide tiles across the board. When like tiles meet they merge and add, and another tile is added to the board in a random place. To win the game you have to create a tile worth 2048.
Hopefully you have as much f