2048 in swift playground

I composed a 2048 game with less than 400 lines of code in swift playground a couple of months ago. I just wanted to see how serious Swift Playground for iOS 10 could be. I wrote most of the code in a coffee bar with my iPad Pro. Dash for iPad was my best friend especially when I did not have Xcode along with me. It reminded me when I was in my teenage and typed lines of BASIC into my Apple II clone just to play Snake.

Now Swift Playground has been officially released with iOS 10 and I just updated my 2048 to the latest version of Swift 3.0. If you like, you can check it out and have some fun with numbers.