Source code about building the 2048 game in Unity game engine.
Check the tutorial blog post here http://dgkanatsios.com/2016/01/23/building-the-2048-game-in-unity-via-c-and-visual-studio/
You can play the game in a WebGL enabled browser here http://unitysamples.azurewebsites.net/2048/