How can I blueprint a boardgame's mechanics?

I hope that this example clarify’s the challenge a bit for you?
I would be glad to point out other examples, but ultimately the dynamics are the same: cards triggered by various parameters (often several, including rolls), triggering other cards, sometimes several cards from different decks. Programming and logic-wise - it’s all the same.