GitXplorerGitXplorer
m

nxn2048hs

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
b4b07997eb68d53cc208f1aa38b772873e0fb3dd

Fixed double printing issue

mmpolson64 committed 6 years ago
Unverified
33812c7be8685ae475c3b39a6a14cfab45d6e84e

Idk what I did here

mmpolson64 committed 6 years ago
Verified
c40b576e15a75da6469597c9109594ea5c1a414a

Update README.md

mmpolson64 committed 6 years ago
Verified
d3994632ace04c24d4109e7b7314bc094044bc50

Update README.md

mmpolson64 committed 6 years ago
Unverified
b5fa525ebbf4e7dbf24dd4f4253f195bb80a32a6

Defaults to 4x4 and seed 0 when insufficient command lines passed

mmpolson64 committed 6 years ago
Unverified
bebdd7e66bd5f8a4627b84e656e3da4aa80aba7a

Command line arguments

mmpolson64 committed 6 years ago

README

The README file for this repository.

nxn2048hs

Terminal 2048 implementation for n by n game boards written (for great good) in Haskell.

How to play

Clone the repository, build with cabal, then run the executable with (optional) command line arguments for board dimensionality and random number generator seed. Use WASD (or hjkl) to slide the board. The game ends with the board becomes locked, or use to quit immediately.

git clone https://github.com/mpolson64/nxn2048hs.git
cd nxn2048/
cabal build
./dist/build/nxn2048hs/nxn2048hs 4 0

asciicast

Why this game exists

I made this game as an exersise in learning the Haskell programming language while reading the deservedly often praised Learn you a Haskell for Great Good. While I don't use Haskell to any meaningful extent in either my academic or professional work as of date, I try and implement functional principles in everything I write. This project has been a quick and fun learning experience in both a new language and a light intro into monadic structures.