Open JanisE opened 7 years ago
Hi. This project is pretty much abandoned, I haven't done anything with it in years. But basically you would add a sort function to the Hand class, which would sort the cards according to whatever you want, and then call the render function again to update the cards to their correct positions.
How can I sort the cards in a hand?
For example, I see that in your game https://cardgames.io/spades/ the hand's cards get sorted after they are finished being dealt.
Thank you!