you know the game where are the cards are flipped down and then you have to flip to match two cards, are they using tables? are they setting both tables equal to each other,?
Yeah tables might be your best bet. You can just have 1 table with all of the cards, then check to see if the table elements match
by table elements you mean keys(data)
Yes, for example:
myTable[1] = “fish”
myTable[2] = “dog”
myTable[3] = “cat”
myTable[4] = “dog”
myTable[5] = “fish”
myTable[6] = “cat”
Yeah tables might be your best bet. You can just have 1 table with all of the cards, then check to see if the table elements match
by table elements you mean keys(data)
Yes, for example:
myTable[1] = “fish”
myTable[2] = “dog”
myTable[3] = “cat”
myTable[4] = “dog”
myTable[5] = “fish”
myTable[6] = “cat”