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
- Install Python 3.x and Pygame
- Clone this repository
- Navigate to the repository directory and run
python main.py
- 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.