I am running an experiment where objects are being displayed on different locations on the screen and participants get to practice by placing the objects in that location with feedback of “Correct/Incorrect”. If the participant gets it right twice, the image is to be considered learned and the code shouldn’t display that image. But, for me, it keeps showing all the images irrespective of how many times I get them correct.
feedbackimage.setPos((locationX,locationY))
chosenimage.setPos((clickX,clickY))
trials.addData("clickX",clickX)
trials.addData("clickY",clickY)
distance=sqrt(pow((locationX*SCREENWIDTH)-(clickX*SCREENWIDTH),2)+pow((locationY*SCREENHEIGHT)-(clickY*SCREENHEIGHT),2))
#thisObject= randchoice(objectList)
thisObject =np.random.choice(objectList)
if (distance <= CORRECT_THRESH):
if thisObject not in learned and firstRun:
learned.append(thisObject)
feedbacktext.setText("CORRECT")
else:
feedbacktext.setText("INCORRECT")
objectnum= learned.count(thisObject)
if objectnum == 2:
trials.finished = True
else:
trials.finished = False
I have been trying to figure out for a while, I greatly appreciate any help. Thanks!