But it produces the same outcome as the elseā¦
Iām so very confused of why it produces the same outcome as the else and itās still required.
But it produces the same outcome as the elseā¦
Iām so very confused of why it produces the same outcome as the else and itās still required.
Okay, let me try again. The if part of the statement checks to see if the drawn card is not equal to Claimed. Like for example, a card whoās value is āBaghdadā, itās not Claimed so itās set to Claimed. Now, as far as I can tell, youāre saying that the else/if is unnecessary because the else already runs the same thing. But without the else/if, a card set to āDiscardedā would fit the description of not equal to Claimed, and that would ruin the simulation of not picking up the card again. The else just checks if the card is equal to āClaimedā. Better?
But doesnāt it already? So it would always run that code first, and never run the others if itās equal to ādiscardedā?
Yeah, I realized that to, but it still doesnāt effect it somehowā¦
like as if the game also for fun looks through the rest of the code and sees the discard else/if statement, but I dunno, itās weird.
Does the whole code work?
Yeah it does.
No glitches or anything.
(you might not have seen it but I just added dealing and Reshuffling the discarded cards)
Ok then Iām loosing my mind over nothing. Ima just not ask questions anymore
Oh then that makes sense now
Okay.