コード例 #1
0
ファイル: Botpit.java プロジェクト: dendiz/spate-java
 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());
 }
コード例 #2
0
ファイル: Botpit.java プロジェクト: dendiz/spate-java
 private void set_waiting() {
   for (int i = 0; i < actions.length; i++) {
     if (actions[i].type != Action.FOLD) actions[i] = Action.waiting();
   }
 }