Here is my actual method:
Card is a TextureRect with two properties:
- type:
NUMBERED, SKIP, REVERSE, DRAW, WILD, WILDDRAW - color:
RED, YELLOW, GREEN, BLUE
To check if a card can be played, the game will verify if the color or the type matches the previous card, except for WILD and WILDDRAW cards
Also, when the type is NUMBERED, a third property is added to represent the number of the card
Right now, I'm struggling with the additional number property. I don't know how to update the symbol when the property is change.
I linked my code to this post