@markhuang1212/poker-p
v0.1.2
Published
### Usage ``` var mStg = new Game.Stage(new Game.Card(5, 2), new Game.Card(6, 2)) var exp_cal = new ExpectationCalculator(1000) exp_cal.setCondition(5, [new Game.Card(8, 3), new Game.Card(7, 1)], mStg) // condition can be reset
Downloads
1
Readme
poker-p
Usage
var mStg = new Game.Stage(new Game.Card(5, 2), new Game.Card(6, 2))
var exp_cal = new ExpectationCalculator(1000)
exp_cal.setCondition(5, [new Game.Card(8, 3), new Game.Card(7, 1)], mStg) // condition can be reset
var res = exp_cal.run() // returns an object
console.log(res.pOfWinning)
console.log(res.pOfTie)