0
help !!
So i made a poker game and now i dont know how to compare hands to specify wich one wins :(any help)? https://code.sololearn.com/c9KOD4e3PTmo/?ref=app
9 Réponses
+ 1
you would have to have something like an array to store both hands and then compare them that way
+ 1
Țucudean Adrian-Ionuț clarify please
+ 1
Țucudean Adrian-Ionuț i'm aware of that, and you should have an array for both hands as well as one for the table. comparing would then be easy as all the values are instantly accessible
+ 1
i guess i can make some comparations
0
but i need to connect the hands with the table
0
each player has 2 random cards
0
soo the cards in the hand must find its double on those cards on the table (or triple)
if my hand is more powerfull (bigger double ) then i win
0
that is in interesting problem
0
like making a counter for pairs then comparing the pair from both hands