hearts.cpp
void checkExists(vector<vector<vector<int>>> &playerHands, int i, int suit, int card, bool &passCard)
{
	//Checks through the playerHands vector to make sure the certain card is there
	for(int q = 0; q < playerHands[i][suit - 1].size(); q++)
	{
		if(playerHands[i][suit - 1][q] == card - 1)
		{
			passCard = true;
			break;
		}
		else
			passCard = false;
	}
}
//function takes in the vector of player hands, a player index, a suit, a card, and a boolean to change. Checks to make sure the card exists in the player's hand
function takes in the vector of player hands, a player index, a suit, a card, and a boolean to change. Checks to make sure the card exists in the player's hand
function takes in the vector of player hands a player index a suit a card and a boolean to change . Checks to make sure the card exists in the player ' s hand
void checkExists(vector<vector<vector<int>>> &playerHands, int i, int suit, int card, bool &passCard)
{
	for(int q = 0; q < playerHands[i][suit - 1].size(); q++)
	{
		if(playerHands[i][suit - 1][q] == card - 1)
		{
			passCard = true;
			break;
		}
		else
			passCard = false;
	}
}
void checkExists ( vector < vector < vector < int > > > & playerHands , int i , int suit , int card , bool & passCard ) { for ( int q = 0 ; q < playerHands [ i ] [ suit - 1 ] . size ( ) ; q ++ ) { if ( playerHands [ i ] [ suit - 1 ] [ q ] == card - 1 ) { passCard = true ; break ; } else passCard = false ; } }
function takes in the vector of player hands, a player index, a suit, a card, and a boolean to change.
function takes in the vector of player hands a player index a suit a card and a boolean to change .
//Checks through the playerHands vector to make sure the certain card is there