A
Alias
I'm taking a C++ Class, and I'm supposed to be writing a program that
basically simulates poker, minus the straight flush, royal flush, and
full house.
Anyway, you input the number of players, and it checks for a pair,
three of a kind, four of a kind, two pair, a flush, and a straight.
If you've got two players or more, it deals player one's cards [1 - 5],
checks for a pair, three of a kind, etc, etc all the way through, and
tells you what the best thing you're holding is. Once it goes for the
second player, however, it deals fine [6 - 10], looks for a Pair
perfectly fine, but when it gets to the three of a kind, it identifies
cards 6, 7, and 8, but when it checks to figure out what card 9 is, it
crashes.
If that does't really make sense, it basically has a set matrix of
suits and face values, then assigns each one a "drawing order". Player
one gets cards that have the assigned drawing orders of 1 - 5, player 2
gets 6 - 10, etc.
Any help would be greatly appreciated.
basically simulates poker, minus the straight flush, royal flush, and
full house.
Anyway, you input the number of players, and it checks for a pair,
three of a kind, four of a kind, two pair, a flush, and a straight.
If you've got two players or more, it deals player one's cards [1 - 5],
checks for a pair, three of a kind, etc, etc all the way through, and
tells you what the best thing you're holding is. Once it goes for the
second player, however, it deals fine [6 - 10], looks for a Pair
perfectly fine, but when it gets to the three of a kind, it identifies
cards 6, 7, and 8, but when it checks to figure out what card 9 is, it
crashes.
If that does't really make sense, it basically has a set matrix of
suits and face values, then assigns each one a "drawing order". Player
one gets cards that have the assigned drawing orders of 1 - 5, player 2
gets 6 - 10, etc.
Any help would be greatly appreciated.