I am building a simple memory game - you know those card flip
things. I am testing if the value assigned to pic1 and pic2 are the
same and using trace statements to verify that they are the same
but still getting a false answer to the if statement. Pulling my
Any suggestions would be greatfully recieved
I've done a bit more work and it seems to have something to
do with the process by which I am randomizing the numbers in the
array. If I work with a plane non randomized array the if statement
works and can figure out the difference between pairs that match
and pairs that don't but... once I randomize the numbers by
basically taking the value at a random index and putting it into a
new array - the if statement equality check no longer works.
It is almost like the number is not really an integer even
though I have tried forcing it with the int() statement.