Hello
I am writing a program that will be just like texas holdem.
I have a question about how to score the hands. I was wondering if there was an easier way to make sure you have the right cards in your hand to be able to score it.
I mean if you have a royal flush you have a 10,j,q,k,a in the same suit. And for a flush you have any five card sequence in the same suit. (eg. 8,9,10,J,Q and A, 2,3,4,5 of same suit). All the cards are of the same suit, and all are consecutive i dont even know if this is right or not I guess what i am asking is, is there a way to shorten my if statment?
Code:
void playercardscorer(int card1,int card2,int potcard1,int potcard2,int potcard3,char suite,char potsuite)
{
	int playerhandscore;
	if((card1==10,11,12,13,1)||(card2==10,11,12,13,1)||(potcard1==10,11,12,13,1)||(potcard2==10,11,12,13,1)||(potcard3==10,11,12,13,1)||(suite=='d','c','s','h')||(potsuite=='d','c','s','h'))
	{
		playerhandscore=10;
		cout<<"You have a Royal Flush"<<endl;
	}
	if((suite=='d','c','s','h')&&(potsuite=='d'||potsuite=='h'||potsuite=='s'||potsuite=='c'))
	{
		playerhandscore=9;
	}

	
}