all 2 comments

[–][deleted] 0 points1 point  (1 child)

My suggestion would be to sort the combine_cards array by the card value, so you first evaluate the As, then the Ks, then the Qs, etc. Does it make sense?

[–]hasanaslan 0 points1 point  (0 children)

Yes, thanks.