h2048-0.3.0.0: An Implementation of Game 2048

Copyright(c) 2014 Javran Cheng
LicenseMIT
MaintainerJavran.C@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Game.H2048.UI.Simple

Description

A simple CLI implemention of Game 2048

Synopsis

Documentation

drawBoard :: Board -> IO () Source #

pretty print the board to stdout

playGame :: (MonadIO m, MonadRandom m, Alternative m) => (Board, Int) -> m () Source #

play game on a given board until user quits or game ends

main :: IO () Source #

the entry of Simple UI

data Board Source #

represent a 4x4 board for Game 2048 each element should be either zero or 2^i where i >= 1.