h2048-0.2.0.1: a haskell implementation of Game 2048

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

Game.H2048.Utils

Description

helper functions used when implementing game logic

Synopsis

Documentation

inPos Source

Arguments

:: Int

the index

-> (a -> a)

a function from the old element to the new one

-> [a]

the list to be modified

-> [a] 

modify a specified element in a list, this is a simple semantic editor combinator

universe :: (Bounded e, Enum e) => [e] Source

all possible values for a Bounded Enum