HEllo I"m trying to program a TCG like game.
I 'A' 'B' 'C' 'D' and 'AB', 'AC', 'AD', 'BC', 'BD' and 'CD' variables that hold how much 'Mana' they have of each type and you can use 'A', 'AB', 'AC', 'AD' to pay the 'A' cost to play the card and likewise for it's 'B', 'C' and 'D' costs.
I've been trying to figure out a way to tell if you can play the card but just brute forcing and testing every combination with a if statements is the best I can think of. I'm betting their's some elegant solution to this problem.
Can anyone think of it?