SevenCardStud.cpp
//
// SevenCardStud:: printPlayerCards
// Print the hand of the player with the given name
// Print the up cards of other players
//

: printPlayerCards
Print the hand of the player with the given name
Print the up cards of other players
: printPlayerCards Print the hand of the player with the given name Print the up cards of other players
void SevenCardStud::printPlayerCards(string name){
	for (auto it = players.begin(); it < players.end(); it++){
		if ((*it)->name == name){
			cout << "Your Hand ("<< (*it)->name <<"): " << (*it)->downCards << " " << (*it)->upCards << endl;
		}
		else{
			cout << (*it)->name << "'s Hand: " << (*it)->upCards;
			for (int i = 0; i < (*it)->downCards.size(); i++){
				cout << " *";
			}
			cout << endl;
		}
	}
}
void SevenCardStud :: printPlayerCards ( string name ) { for ( auto it = players . begin ( ) ; it < players . end ( ) ; it ++ ) { if ( ( * it ) -> name == name ) { cout << " " << ( * it ) -> name << " " << ( * it ) -> downCards << " " << ( * it ) -> upCards << endl ; } else { cout << ( * it ) -> name << " " << ( * it ) -> upCards ; for ( int i = 0 ; i < ( * it ) -> downCards . size ( ) ; i ++ ) { cout << " " ; } cout << endl ; } } }
SevenCardStud:: printPlayerCards
Print the hand of the player with the given name
Print the up cards of other players
SevenCardStud :: printPlayerCards Print the hand of the player with the given name Print the up cards of other players