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?
void playercardscorer(int card1,int card2,int potcard1,int potcard2,int potcard3,char suite,char potsuite)
cout<<"You have a Royal Flush"<<endl;