Hi, first of all sorry if i commit any mistakes, english is not my primary language and if you could correct me i would be very gratefull.
So, I am programming a card game, like poker, but I'm having difficulties on making the sistem detect if the 5 cards are in a sequence (1-2-3-4-5)
Example: I have a 5 and a 2, in the table is shown 2-9-6-7-8. How can it detect the sequence with my card "5" and the "9-6-7-8" on the table?
Thx :3