Hello everyone. I am currently working on a card game. The game has 42 different (unique) cards. The cards can have up to 4 different values.
I have now created a separate array for each card with 1-4 elements.
The idea is, similar to a Uno card game, that the player can put certain cards only on other cards.
Example:
Card 1 = 1,2,4,6
Card 2 = 3,6,9
Card 3 = 5
Card 1 and 2 are compatible, card 3 can neither be placed on card 1 nor on card 2.
I would now like to compare the arrays with each other.
What is the best way to do this? Do you have any ideas?
Translated with deepl.com/Translator (free version)