Exemplo n.º 1
0
 private void new_hand(int i) {
   if (LOG) Log.info(" *** new Hand " + i + " ****");
   if (TRACE) tracer.append(String.format("[hand] id: %d", i));
   if (TRACE) tracer.append(String.format("[players] total: %d", NUMPLAYERS));
   pot = 0;
   for (int j = 0; j < board.length; j++) board[j] = null;
   raises = 0;
   inc_button();
   deck.reset();
   deck.shuffle();
   for (IBot b : players) {
     actions[b.get_seat()] = Action.waiting();
     bets[b.get_seat()] = 0;
     b.new_hand();
   }
   if (LOG) Log.info("dealer is bot" + players[button].get_name());
 }
Exemplo n.º 2
0
 private void set_waiting() {
   for (int i = 0; i < actions.length; i++) {
     if (actions[i].type != Action.FOLD) actions[i] = Action.waiting();
   }
 }