Copyright | (c) Eric Mertens 2021 |
---|---|
License | ISC |
Maintainer | emertens@gmail.com |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- main :: IO ()
- runSim :: GameState -> Int
- data Spell
- = Recharge
- | Poison
- | Shield
- | Drain
- | MagicMissile
- spellDamage :: Spell -> Int
- spellHeal :: Spell -> Int
- spellCost :: Spell -> Int
- data GameState = GameState {
- manaPool :: !Int
- poisonTimer :: !Int
- rechargeTimer :: !Int
- shieldTimer :: !Int
- playerHp :: !Int
- bossHp :: !Int
- bossDamage :: !Int
- difficulty :: !Int
- initialState :: Int -> Int -> GameState
- stepTimers :: GameState -> GameState
- bossAttack :: GameState -> GameState
- applyDifficulty :: GameState -> GameState
- advance :: GameState -> [AStep GameState]
- (-->) :: GameState -> (GameState -> GameState) -> [GameState]
- applySpell :: Spell -> GameState -> GameState
- availableSpells :: GameState -> [Spell]
- dec :: Int -> Int
- bossDead :: GameState -> Bool
- playerDead :: GameState -> Bool
Documentation
spellDamage :: Spell -> Int Source #
GameState | |
|
stepTimers :: GameState -> GameState Source #
bossAttack :: GameState -> GameState Source #
applyDifficulty :: GameState -> GameState Source #
availableSpells :: GameState -> [Spell] Source #
playerDead :: GameState -> Bool Source #