FiveCardDraw.cpp
//
// FiveCardDraw::round() 
// loop through the list of players and call after_turn on each of them
//

:round()
loop through the list of players and call after_turn on each of them
: round () loop through the list of players and call after_turn on each of them
int FiveCardDraw::round()
{
	cout << endl;
	cout << "Here is what each player has after drawing their brand new CARDS!" << endl;
	unsigned int nextPlayer = 1;
	unsigned int i = 0;
	int dealToIndex = dealer_index; 
	while (i < players.size())
	{
		dealToIndex = (dealToIndex + nextPlayer) % players.size();
		int turnResult = turn(*players[dealToIndex]);
		if (turnResult!= errors::noError)
		{
			return turnResult;
		}
		after_turn(*players[dealToIndex]);
		i++;
	}
	bet();
	return errors::noError;
}
int FiveCardDraw :: round ( ) { cout << endl ; cout << " " << endl ; unsigned int nextPlayer = 1 ; unsigned int i = 0 ; int dealToIndex = dealer_index ; while ( i < players . size ( ) ) { dealToIndex = ( dealToIndex + nextPlayer ) % players . size ( ) ; int turnResult = turn ( * players [ dealToIndex ] ) ; if ( turnResult != errors :: noError ) { return turnResult ; } after_turn ( * players [ dealToIndex ] ) ; i ++ ; } bet ( ) ; return errors :: noError ; }
FiveCardDraw::round()
loop through the list of players and call after_turn on each of them
FiveCardDraw :: round () loop through the list of players and call after_turn on each of them