-- ORIGINAL INSTRUCTIONS -- The goal of the game is to join tiles together that are the same value. When two tiles combine, they become one tile that's double the value. As the title implies, your goal is to make a tile worth 2048. Use the arrow keys or WASD to shift all of the tiles on the board in the same direction. Every time you move the tiles, a new tile will spawn randomly with a value of either two or four. -- REMIX EDITS -- I changed some of the mechanics. I bet you can figure it out. you're smart.
I changed four of the little numbers that were in Jeremiah MacDonald's scripts for his 2048 project (which was a pretty awesome accomplishment in scripting. Nice computer science work.) I made this as I was analyzing those scripts to figure out how they work. The gameplay mechanic is actually pretty different now. good luck.