Modified the code a little...now it makes the average out of ten rounds and it shows the time of each round. Oh by the way...I got 1ms without cheating...just luck!
hide mouse
verystart:
start=0
start:
start=start+1
if start>10 then goto final
start1:
do
timeWait = rnd(4000)+1000
time = timer()
repeat
if mouseclick() = 1
print "Too Early!!!"
wait 1000
cls
goto start1
endif
until timer()-time >= timeWait
cls RGB(255,0,0)
a#=timer()
repeat
until mouseclick()=1
if start=1 then b#=timer()-a#
if start=2 then c#=timer()-a#
if start=3 then d#=timer()-a#
if start=4 then e#=timer()-a#
if start=5 then f#=timer()-a#
if start=6 then g#=timer()-a#
if start=7 then h#=timer()-a#
if start=8 then i#=timer()-a#
if start=9 then l#=timer()-a#
if start=10 then m#=timer()-a#
cls RGB(0,0,0)
cls
wait 200
goto start
loop
final:
print "it took you ";b#;"ms to react the first time"
print "it took you ";c#;"ms to react the second time"
print "it took you ";d#;"ms to react the third time"
print "it took you ";e#;"ms to react the fourth time"
print "it took you ";f#;"ms to react the fifth time"
print "it took you ";g#;"ms to react the sixth time"
print "it took you ";h#;"ms to react the seventh time"
print "it took you ";i#;"ms to react the eighth time"
print "it took you ";l#;"ms to react the nineth time"
print "it took you ";m#;"ms to react the tenth time"
average#=(b#+c#+d#+e#+f#+g#+h#+i#+l#+m#)/10
print "your average is";average#
repeat
until mouseclick()=1
cls RGB(0,0,0)
goto verystart
Ps:
The code isn't very complicated, so don't write posts with saying that I could have done it better in another way...just post your code. I'm not much of a programmer!
Cheers
Francesco
Non si inalberi mica con me, sa!
Lei è venuto qui, lei ha il tombino intasato!
Siamo uno spurgo serio, noi!