Home

Awesome

H2048

A Haskell implementation of the game 2048

Gregor Ulm 2014

The original version of 2048 can be played online here: gabrielecirulli.github.io/2048/

This program covers the game logic and IO, allowing you to play 2048 in the console.


Files:

Rules:

Controls:

Execution:

Notes:


Change Log:

2014-06-15

Initial release; game fully functional, but might require pushing ENTER after a move was entered, depending on your system configuration. I noticed that this was only an issue in OS X, but not in Linux.

2014-06-16

Dan Rosén (https://github.com/danr) sent a pull request, containing several changes and additions. The following is a direct consequence of his submission:

2014-06-17

Github user qzchenwl (https://github.com/qzchenwl) submitted a patch that allows eta-reduction for the function 'move'.

2014-06-18

The starting position was randomized.