In this task, there are 60 white circles displayed on a screen, and then a prespecified number of circles turn black. These are ‘target circles’. Participants have to memorise these and attempt to recall them after a 5-second delay.
Here’s the code from the ‘P1 Targets’ routine, where participants see the target circles turn black.
Please ignore the commented out target lists (haven’t got around to updating them) and also everything below ‘#timer’, because this works perfectly. I have the code type set to both because I needed to manually change the JS code for the timer component.
I’m trying to work out which part of my code isn’t working - is it that the targetlists aren’t being saved properly, that this.N isn’t working, that ‘t’ should be defined differently, or that the colour change isn’t working?
Would appreciate any help! Thank you.