0.1.0 • Published 9 years ago

fatihue v0.1.0

Weekly downloads
-
License
Unlicense
Repository
-
Last release
9 years ago

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.

0.1.0

9 years ago