/typing-tutor-game

Experimental typing tutor game

Primary LanguagePythonApache License 2.0Apache-2.0

Typing Game

This is a typing game developed using Python and Pygame. The goal of the game is to improve the player's typing speed and accuracy by typing the floating letters or words that appear on the screen before they disappear. The game has two modes: letters and words. In letters mode, the player must type individual letters, while in words mode, the player must type entire words.

How to Play

  1. Install Python 3.x and Pygame
  2. Clone this repository
  3. Navigate to the repository directory and run python main.py
  4. Type the letters or words that appear on the screen before they disappear

Requirements

The following packages are required to run the program:

  • Pygame
  • NLTK

You can install them using pip:

pip install pygame nltk

Testing

To run the tests, run the following command in the repository directory:

python test.py

The tests cover the following functionality:

  • Creating a floating letter
  • Creating a floating word
  • Wrapping text

Acknowledgments

The list of English words used in this game was obtained from the NLTK corpus. The keyboard and hands images used in the game were obtained from OpenGameArt.org and Pixabay, respectively.

License

This project is licensed under the MIT License - see the LICENSE file for details.