Arduino (C++) Poker
No.11701586 ViewReplyOriginalReport
Quoted By: >>11701951 >>11704314 >>11705360 >>11709840 >>11711124
Arduino (C++) coding HALP (POKER Straight)
- Need to write bool function to determine straight hand in poker.
- return TRUE if all five cards are in numerical sequence (e.g. 3, 4, 5, 6, 7), else return FALSE.
- An Ace can come before a 2 (A, 2, 3, 4, 5) or after a King (10, J, Q, K, A)
- Straight cannot “wrap around” (i.e. Q, K, A, 2, 3).
(The values (Ace to King) of the five cards are stored in a 5-element array called cardValue and are represented by the numbers 1 (Ace) to 13 (King).)
Will think of reward for solution, ty peeps.
- Need to write bool function to determine straight hand in poker.
- return TRUE if all five cards are in numerical sequence (e.g. 3, 4, 5, 6, 7), else return FALSE.
- An Ace can come before a 2 (A, 2, 3, 4, 5) or after a King (10, J, Q, K, A)
- Straight cannot “wrap around” (i.e. Q, K, A, 2, 3).
(The values (Ace to King) of the five cards are stored in a 5-element array called cardValue and are represented by the numbers 1 (Ace) to 13 (King).)
Will think of reward for solution, ty peeps.
