OK I have to prepare a way to keep track of how many items are present in about 26 items. There is a definite combination of items present or not.
For example, this is an engine for a card game. Each card has a different type of card and cards can be attached to each card. To do some things in the game, the player should have a definite combination of cards connected to the card. To make this program streamlined, I would like to do something like
(if found, (2, water, 4, ground)) {this ()} other {displayerror ()} < / Code>
Edit: Resolve!
I used a combination of the techniques described in some of the posts below. Special mention:
John Skeet, Rinat Abdullin, Frank,
Anyway, what I did, I added a class that stores what I see. , And the number of that type after that I used a certification representative to find all types of that type and counted how many, then I compared the number that I was searching for and the correct or wrong return respectively done.
This is the code for it
See public bolts Crit (parameter pair [] specs) {foreach (pair in glasses) {if ((Attached! (Representative (card c) {return c.type == i type;}). Calculation> = i.value)) {return false;}} true true;}
I take a projection that can be evaluated against your data source and can then evaluate that the predictions return from the result Is doing
Comments
Post a Comment