Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 26th, 2013  |  syntax: C++  |  size: 0.49 KB  |  views: 23  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }