Good ole’ 2048. Its like the Flappy Bird of web games. But its also a glorified 4×4 matrix and we all know what that means — It is low hanging fruit for being made in Matlab.

This ended up being a one day build thanks in part to MatlabDoug’s post on StackOverflow and /u/kekkegul. With their help much of the graphical representation was done for me — I only had to do the back-end and controls without help. Here is the code in it’s entirety.

And a screenshot

Enjoy!