View Single Post
demandred at skrill.org
Guest
 
Posts: n/a

Old October 28th, 2002, 05:17 PM
At 10:09 AM 10/28/2002 +0000, you wrote:

>I have a Superstar card (character) in deck2, and two playdecks:
>deck1 (Arsenal) and deck3 (Backlash). You may only have one
>Superstar card in play.
>
>A Superstar has a logo which appears on the Superstar card. Certain
>cards in the playdecks can also carry superstar logos, which are
>special cards that can be played by that character. I want to check
>that if a user selects such a card, that they have picked a card
>that is valid for play by that Superstar. The solution that Rob
>suggested (below) works great if there is only one logo on the card.
>
>HOWEVER - certain cards carry more than one logo. With the current
>solution, you get one validation failure for each additional symbol
>on each card.
>
>The basic test for validity is:
>"If a card in the playdecks has logos on it, does one of those logos
>match the logo on the character card?"
>
>What am I missing? Can anyone help?

I can think of a bad, messy way to do it, which would work but require a
lot of book-keeping.

If a card has logos for 'Jim' and 'Bob', give it the tag 'JimBob' instead
of both 'Jim' and 'Bob'. Then, write another rule to make sure that if
cards with 'JimBob' are present, so is either Jim or Bob.

Like I said, it's messy...


--
Colen McAlister, demandred@skrill.org
http://www.incompetence-central.co.uk | http://www.skrill.org/
"It's time to toss the dice"


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Looking for a more powerful website? Try GeoCities for $8.95 per month.
Register your domain name (http://your-name.com). More storage! No ads!
http://geocities.yahoo.com/ps/info
http://us.click.yahoo.com/auyVXB/KJo...3IAA/WuQolB/TM
---------------------------------------------------------------------~->
  #2 Reply With Quote