Thinking distance calculations

This project measures your reaction time and calculates the thinking distance of a driver at different speeds.

You will need to build the reaction time game here

Carefully type in the code below into a new Python file. Save the file and then run it using Run > Run Module The game first asks you for the speed of your car in miles per hour (eg 30, 40, 50, 60, 70) The Green LED will stay on for a random amount of time. As soon as the green LED switches off and the yellow one comes on press the button. The script will show you your reaction time and also what your thinking distance would have been at that speed. Try getting a friend to distract you or even try sending a text with one hand while you do the test.