Advertisement
Guest User

Untitled

a guest
Jan 26th, 2013
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. void HandBuilder :: SetBlindsInHand( TableScrapeState &sState, Hand &hand )
  2. {
  3.     hand.moveToNextPlayer();
  4.     int countBlinds = 0;
  5.     while( hand.getCurPlayerSeat() != hand.GetDealerPos() && countBlinds != 2 )
  6.     {
  7.         if ( sState.getBet( hand.getCurPlayerSeat() ) == 0 )
  8.         {
  9.             hand.getPlayer( hand.getCurPlayerSeat() ).SetState(Player::SeatState::Sitout);
  10.            
  11.         }
  12.         else
  13.             countBlinds++;
  14.         hand.moveToNextPlayer();
  15.     }
  16.     hand.SetDealerPos( sState.getDealerPos() );
  17.     hand.PostSB();
  18.     hand.PostBB();
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement