Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

8Gitbrix/2048Haskell

Repository files navigation

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.

About

Play 2048 from the command line /terminal !

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

AltStyle によって変換されたページ (->オリジナル) /