currentCardRank ?

hey guys i just made a poker game, and i try to determined the royal flush.
my friend said that i need to use currentCardRank, i've made it and it works. but i still have no idea the way it works.
can you explain to me the way it works? thanks in advance^^
Last edited on
I have no idea what S, R or x are. I'm guessing it's suit, rank and value? but why would you need to do the mod function on this?

I've always thought that card games are a great way to start OOP. Try making a class that represents a card. A deck class contains 52 cards which can be shuffled randomly at the start and then puts some of those cards in people's hands which can be another class.
Topic archived. No new replies allowed.