DISCLAIMER: Yes, I know other Dominion Randomizers exist, even in excel. Yes, I'm attempting to reinvent the wheel.
======
I'm having trouble coding the interactions of Young Witch (specifically the bane requirement) and Black Market.
As of now, I am:
Selecting the Kingdom
Checking for Young Witch, if so, assigning a bane.
Checking the new kingdom (which includes a bane, if there is one) for Black Market, if so assigning Black Market cards.
If Young Witch is in the Black Market, assigning a Bane which cannot be in the Black Market deck.
The red text is what I'm having trouble with, coming up with circular references.
Any help?
I'm good at Excel, and good at translating code into English and vice versa, so don't feel like you need my code to check for silly errors. In real life when one plays with YW/BM, there are several "common sense" things that we do that don't easily translate into code. Any thoughts? Anyone know how iso/DougZ codes this interaction?