I am trying to event a poker game similar to this japanese game
here. I found a javascript code
here. But i do not know how to apply them in to MV conditional branch..
the following are : royal flush, straight flush, 4 of a kind, full house, flush, straight, 3 of a kind 2 pairs, pair, high card..
5 cards are dealt every time and the combination is checked. I will use 5 variables for the suit and 5 variables for values. i do not know how to check elements in the arrays. suit array and value array.
EDIT: I was able to figure about manually without using array properties.
Common Events created:
1. Determine High Card
2. Sort Card Values Ascending
3. Determine Consecutive
Since the card values are arranged in ascending order.. all combinations will be easier to check..
Let's say these sorted array is A B C D E
Combinations like 4 of a kind will only be A A A A B or A B B B B, FullHouse will only be A A A B B , A B B B C, or A B C C C.