N-back task training - 3x3 square with random sequence with responses

Windows 10: psychopy version v2020 1.3: Standard standalone

Hi Everyone, I am new to PsychoPy and need help.

I am looking to create a visual n back training task. The visual stimulus will be a 3 x 3 square. A random sequence of blocks will flash, participants are to remember the sequence according to the trial (1 back, 2 back, 3 back… 9 back). The level of n increases as participants accurately recall and decreases the worse participants get.

I am looking to create the 3x3 square block that provides random sequence and record the accurate response. Furthermore, I would like to develop an increase in n back and decrease in n-back number depending on how well participants improve to get worse.

Can anyone help me in developing this?

Thanks,
Monica

this will help you How to present all the squares at the same time using the custom code? - Builder - PsychoPy