We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6701e8c commit f3d4a49Copy full SHA for f3d4a49
players/challengerBot.js
@@ -67,11 +67,11 @@ module.exports = function () {
67
68
// calculate pot size
69
var pot = 0;
70
- game.players.map(p => pot += parseFloat(p.wagered));
+ game.players.map(function(p) { return pot += parseFloat(p.wagered); });
71
72
// compensate for horrible pre-flop and flop
73
// reducing opponent count increases simulation winning odds
74
- var num_opponents = game.players.filter(p => p.state == 'active').length;
+ var num_opponents = game.players.filter(function(p) { return p.state == 'active'; }).length;
75
var sim_opponents = Math.min(num_opponents, opponent_cap);
76
77
// calculate winning odds
0 commit comments