This script implements the Hearts and Flowers Task (a child friendly Simon's Task), a test of Executive Control.
Participants are presented trials with either a heart or a flower that appear to the left or right of a fixation cross.
If participants see a heart, they are asked to press the corresponding left or right response button (=congruent trials).
For example, if the heart is left to the fixation cross, participants are asked to press the left button.
If participants see a flower, they are asked to press the opposite response button (=incongruent trials).
For example, if the flower is left to the fixation cross, participants are asked to press the right button key.
ensure that a minimum of switch trials would run for each participant.
reminder of the rules and have to retry the trial (at this point, only correct responses are accepted to move to the next trial).
Each Test Block runs 20 trials.