/2048Haskell

Play 2048 from the command line /terminal !

Primary LanguageHaskellBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

2048Haskell

game

Run:

stack setup
stack build
stack exec 2048Haskell

In the menu:

  1. hit enter
  2. press h
  3. hit enter again
  4. now you can play!

At the start of the game you can select a player (either yourself or a bot). Hit enter, and then enter the character representing the player you want.

Rules:

Board made up of 16 tiles. Possible moves: Left, Right, Up, Down

  1. At each time step a new tile that is a random multiple of 2 will be placed in the board.
  2. When you select one of the moves, all tiles will move as far as possible in that direction in the grid.
  3. Tiles of the same value will combine into 1 tile with the value of their sum.
  4. The objective is to get a highest value tile you can. The highest possible value tile to win the game is 2048.