got this reaction timer... now would like to ad better or worse feature...

Wrote code for arduino uno (without lcd feature) for a reaction timer…
Now I would like to ad on the monitor display if the participant did better or worse on the next run…

Anybody any idea how to proceed from here?

reaction_time_game_with_animation_and_replay_button.ino (4.55 KB)

if the participant did better or worse on the next run...

I presume you mean that you want to note whether the participant did better or worse on this run than on the previous run.

If so, what is the problem?

    delay(random(1000,3000));         //wait random time 1 to 3 sec

You meant 1 to 2.999 seconds...

You clearly need to record, in a local, static or global variable, the reaction time from the current run, so you can compare it to the reaction time from the last run, which will need to be stored in a static or global variable.

Thanks for your reply!

working on it but not easy for a 61 yr old newbee...