26.04.2015, 19:10
Hi,
I have a cards info in variable like:
new CardNames[ 8 ][ 50 ];
How you see here is full house
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.
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";
Код:
CardNames[ 0 ] CardNames[ 1 ] CardNames[ 2 ] CardNames[ 3 ] CardNames[ 4 ]