fatihue
v0.1.0
Published
hearthstone simple fatigue calculator
Downloads
4
Readme
fatihue
Hearthstone simple fatigue calculator.
Usage
// psuedo-JavaScript + Haskell
const fatihue = require('fatihue')
// p1 is you, p2 is your opponent
fatihue(
p1DeckSize :: Int,
p1CurrentFatigueTick :: Int,
p2DS :: Int,
p2CFT :: Int,
actions :: [Action])
Actions :: [Action]
Action <- 'coldlight' | 'brann' | 'gangup'
// the return value will be like:
{ p1Dmg :: Int, p2Dmg :: Int, p2FutureDmg :: Int }
// p2FutureDmg is what the opponent will be taking next turn
Example
> const fatihue = require('fatihue')
> // suppose your opponent has one card left in the deck, you have two
> fatihue(2, 0, 1, 0, ['brann', 'coldlight', 'coldlight'])
{ p1Dmg: 21, p2Dmg: 28, p2FutureDmg: 36 }
License
Unlicensed.