src/mp_betting_tree.cpp
// Determine the next player to act, taking into account who has folded.
// Pass in first candidate for next player to act.
Determine the next player to act, taking into account who has folded.
Pass in first candidate for next player to act.
Determine the next player to act taking into account who has folded . Pass in first candidate for next player to act .
static int NextPlayerToAct(int p, bool *folded) {
  int num_players = Game::NumPlayers();
  while (folded[p]) {
    p = (p + 1) % num_players;
  }
  return p;
}
static int NextPlayerToAct ( int p , bool * folded ) { int num_players = Game :: NumPlayers ( ) ; while ( folded [ p ] ) { p = ( p + 1 ) % num_players ; } return p ; }
Determine the next player to act, taking into account who has folded.
Determine the next player to act taking into account who has folded .