There are HandCards and FieldCards. FieldCards have values on em according to the card, color and power (like suit and number). ThI have 54 cards each with their own frame in the object FieldCards. How can I assign a color and number to each frame? Should I organize the Frames in a certain w
ay?
The pseudo-code should read:
If CardA.Color=Blue & CardB.Color=Green; Then CardA.Power=/2
If CardA.Color=Blue & CardB.Color=Red; Then CardB.Power=/2
If CardA.Color=Blue & CardB.Color=Blue; Then nothing.
---
If CardA.Color=Red & CardB.Color=Blue; Then CardA.Power=/2
If CardA.Color=Red & CardB.Color=Green; Then CardB.Power=/2
If CardA.Color=Red & CardB.Color=Red; Then nothing.
---
If CardA.Color=Green & CardB.Color=Red; Then CardA.Power=/2
If CardA.Color=Green & CardB.Color=Blue; Then CardB.Power=/2
If CardA.Color=Green & CardB.Color=Green; Then nothing
If CardA.Power>CardB.Power; Then destroy CardB
---
If CardA.Power<CardB.Power; Then destroy CardA
---
If CardA.Power=CardB.Power; Then destroy CardA & CardB