on 9/16/2014 6:35 AM

This small logic game written in JavaScript+HTML5 has spawned quite a lot of variants. There is a site called Make Your Own 2048 where you can switch the original's numbers to any text or image and share your creation. However, modifying the game logic requires some programming knowledge and sometimes bigger rework of the original JavaScript code.

Try it live

My goal with an F#-based version was to have an easily overriden game rules class to enable writing a new variant in a few lines of code. In CloudSharper, you can write and play your variant right in your browser window. Clone this shared workspace and look for the file Variants.fs for editing. Build the project and open index.html and switch to Document/Split view for easiest testing, or use the Workspace/Deploy locally (Ctrl+D) menu option.

Clone in CloudSharper

Currently the grid size and the tiles' appearance can't be customized, but expect this demo to be expanded to show off more features coming to CloudSharper.


It's really a good news to have a real sample applications to study :)

And more over, I like the fact that you can create your own game rules.

Thanks for the work.

By on 9/18/2014 12:36 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper