Check is full house
#1

Hi,

I have a cards info in variable like:

new CardNames[ 8 ][ 50 ];

Код:
CardNames[ 0 ] = "2 Clubs";
CardNames[ 1 ] = "2 Diamonds";
CardNames[ 2 ] = "2 Heats";
CardNames[ 3 ] = "3 Diamonds";
CardNames[ 4 ] = "4 Diamonds";
CardNames[ 5 ] = "A Clubs";
CardNames[ 6 ] = "4 Heats";
CardNames[ 7 ] = "J Diamonds";
How you see here is full house

Код:
CardNames[ 0 ]
CardNames[ 1 ]
CardNames[ 2 ]
CardNames[ 3 ]
CardNames[ 4 ]
But card names are random and i just know that 8 cards i have to check and i have no idea how to check all combinations with all poker cards is there full house.
Reply


Forum Jump:


Users browsing this thread: