425 B
425 B
poker.js — passTurn() (satır 885)
function passTurn(table) {
var maxLoop = table.players.length;
for (var i = 0; i < maxLoop; i++) {
table.turn_index++;
if (table.turn_index >= table.players.length) {
table.turn_index = 0;
}
if (!table.players[table.turn_index].folded) {
break;
}
}
}