Skip to content

Commit f3d4a49

Browse files
committed
fix for old node
1 parent 6701e8c commit f3d4a49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

players/challengerBot.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ module.exports = function () {
6767

6868
// calculate pot size
6969
var pot = 0;
70-
game.players.map(p => pot += parseFloat(p.wagered));
70+
game.players.map(function(p) { return pot += parseFloat(p.wagered); });
7171

7272
// compensate for horrible pre-flop and flop
7373
// reducing opponent count increases simulation winning odds
74-
var num_opponents = game.players.filter(p => p.state == 'active').length;
74+
var num_opponents = game.players.filter(function(p) { return p.state == 'active'; }).length;
7575
var sim_opponents = Math.min(num_opponents, opponent_cap);
7676

7777
// calculate winning odds

0 commit comments

Comments
 (0)