I’m trying to program a Go/Nogo experiment which is working so well in Psychopy 1.90.1. My problem is when I want to constraint the randomization of stimuli position. I have this little script in a code component object:
’ if random()>-0.5:
targetPos=[-0.5, 0.0]#on the left
targetPos=[0.5, 0.0]#on the right
But, what I really wanted to do is to program some constraint, which were able to change to the other position when 4 consecutive stimuli were presented in the same side! I’ll appreciate any suggestions to do this!
Thanks a lot in advance!