imaging clash royal game ( board and card game ). there is a upgrade system for cards you get those.
example for card 1 ===> ( Goblin )
first upgrade need 2 card of goblin.
2nd upgrade need 4 card of goblin.
3nd upgrade need 7 card of goblin and etc.
and for all cards it is true!
so, when you get 3 cards of goblin at the first, it can level up and 1 card left for next upgrade.
my question is , is it logical to create variable for each card or array for that? or any idea?