Ready for takeoff
This commit is contained in:
parent
b36a7a4b95
commit
b622b93932
10 changed files with 106 additions and 29 deletions
22
lib/data/Game.hs
Normal file
22
lib/data/Game.hs
Normal file
|
@ -0,0 +1,22 @@
|
|||
-- Representation of all the game's data
|
||||
|
||||
module Game
|
||||
( Game(..)
|
||||
, initGame -- Initialize the game
|
||||
) where
|
||||
|
||||
----------------------------- Constants ------------------------------
|
||||
|
||||
data Game = Game {
|
||||
-- TODO Add more
|
||||
playerName :: String
|
||||
}
|
||||
|
||||
----------------------------------------------------------------------
|
||||
|
||||
-- Initialize the game
|
||||
-- TODO Expand
|
||||
initGame :: Game
|
||||
initGame = Game {
|
||||
playerName = "Tibo"
|
||||
}
|
Reference in a new issue