Added state #6, #7, #8

This commit is contained in:
Tibo De Peuter 2022-12-14 15:13:43 +01:00
parent f348a47281
commit 9e5f22458c
6 changed files with 93 additions and 30 deletions

View file

@ -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
}