Im trying to make a fake balatro but i cannot figure out who to make the code recognize pairs or three of a kind. I have it so each card has a instance variable from 1-9 but cant find a way for it to recognize if 2 or more of them are the same card.
Develop games in your browser. Powerful, performant & highly capable.
Use pickedcount, where card.var=1 if card.pickedcount=3 then 3 are the same.