parent
f348a47281
commit
9e5f22458c
6 changed files with 93 additions and 30 deletions
|
@ -2,21 +2,24 @@
|
|||
|
||||
module Game
|
||||
( Game(..)
|
||||
, initGame -- Initialize the game
|
||||
|
||||
-- Initialize the game
|
||||
, initGame
|
||||
) where
|
||||
|
||||
import State
|
||||
|
||||
----------------------------- Constants ------------------------------
|
||||
|
||||
-- TODO Add more
|
||||
data Game = Game {
|
||||
-- TODO Add more
|
||||
playerName :: String
|
||||
-- Current state of the game
|
||||
state :: State
|
||||
}
|
||||
|
||||
----------------------------------------------------------------------
|
||||
|
||||
-- Initialize the game
|
||||
-- TODO Expand
|
||||
initGame :: Game
|
||||
initGame = Game {
|
||||
playerName = "Tibo"
|
||||
state = defaultState
|
||||
}
|
||||
|
|
Reference in a new issue