A Two-Player Poker Machine
Consider a poker machine exactly like the one in the case study except that two people are allowed to play simultaneously. The game treats both players no differently than single players, that is, bets are taken and payouts are made. However, this machine offers each player an additional option to play against the other player. Both players must agree to an amount, which is an additional bet of one to fi ve coins. The winning player receives all the money. The losing player loses his/her bet. If there is a tie, no money changes hands. Note: Hands are compared on the poker machine’s scale. For example, if both players get a full house, it is a tie, regardless of the cards they hold. There is no distinction between hands at the same level. Implement the two-player machine.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here