Esempio n. 1
0
  @Override
  public void stop() {
    super.stop();

    deck.reset();
    phase = PokerPhase.STANDBY;
  }
Esempio n. 2
0
  @Override
  public void removePlayer(PokerPlayer player) {
    super.removePlayer(player);

    if (pot != null) {
      pot.removePlayer(player);
    }
    if (getPlayerCount() < settings.getMinPlayers()
        && !(phase == PokerPhase.STANDBY || phase == PokerPhase.HAND_END)) {
      stop();
    } else {
      switch (phase) {
        case PREFLOP:
        case FLOP:
        case TURN:
        case RIVER:
          betting();
      }
    }
  }