How to make that participant finishes the experiment only at 70% accuracy?

I am working in the builder. I have 9 stimuli and after each stimuli there are three buttons (only one correct), I need to have the participant continue the experiment until they have 70% accuracy. So far I have created manually the 9 stimuli and at the end the buttons, now I need to randomize the 9 conditions, and have the buttons appear after each condition. I don’t know how to make the 9 stimuli random and have the buttons appear after each stimulus, and I don’t know how to make a loop that keeps going until they reach accuracy.

OS (e.g. Win10):
PsychoPy version (e.g. 1.84.x):
Standard Standalone? (y/n) If not then what?:
What are you trying to achieve?:

What did you try to make it work?:

What specifically went wrong when you tried that?:
Include pasted full error message if possible. “That didn’t work” is not enough information.

Hi @Laura_Pissani, how many trials must have passed before accuracy can be calculated? Do they just need to get 7 out of 9 trials correct in a row, from a single block of 9 trials?