Hello, I have a quick question on my code, mostly on operators. My current exercise is further learning and this current project is to make a Tarot Reading web app. As to why, why not? I needed a project and seen one online and felt I could make a better one. Currently I am dealing the cards from the deck and with a deck of ten cards but will expand to the full 78 card set.
Dealing the first two are easy. First chose a num from 1-10 and pickNth instance that match's a family var for each card and position that card on the table. Here is where I am having trouble, For the next 9 cards how do you deal them form the deck and only select the cards that have not all ready been selected.
Right now my attempt is to use a while loop to say during this step (Action = 2) if Card Var Card 2 (ThatWhichCross) is equal to Var Card 1 (HeartOfMatter) set Var Card 2 to new value between 1 and 10; else if they are not equal than place card and stop loop, also set Var Card 3 (TopOfMind)
That part works just fine however it is when I move to dealing with more than one var that I am running into trouble.
While (Action = 3) if Var Card 3 is equal to Var Card 1 OR Card 2 than chose another value between 1-10. else if the inverse than place the card and stop loop.
The issue I am thinking is in the Operators “TopOfMind = ThatWhichCross | HeartOfMatter” the OR expression just dose not seem to be working as I think it should be working.
I also may be approaching this wrong, total possibility any help offered will be welcomed.