Typing Test Game

This project is a typing speed test built using Python and Tkinter. It randomly selects a short passage from a collection of Aesop's fables stored in a JSON object. Each fable is converted into a list item, and the random module is used to select one at random for each test.

The selected fable is displayed in a GUI text box, and the user is asked to retype the passage into a separate input field. A 30-second timer begins as soon as the user presses the first key, implemented using Python’s time module.

Once the timer expires, the input text is compared to the original passage to determine accuracy. The number of mistakes is calculated, and a simple formula is used to determine the user’s words per minute (WPM). Basic validation checks are included to handle edge cases—such as the user submitting no input—so the program doesn’t crash.

This project was a great exercise in GUI development, basic string handling, randomization, and implementing timers and user input validation in Python.