A Curses-based Python application to practice touch-typing by typing out random Wikipedia articles
Note: This has only been tested on Linux. It should work on Mac, but Curses is not natively available in Windows. Try installing windows-curses first:
pip install windows-curses
I am interested in hearing how this runs on other platforms, so feel free to open an issue.
- Optionally create and enter virtual environment:
python -m venv venvsource venv/bin/activate
- Install required packages:
pip install -r requirements.txt - Run application:
python termtype.py
Commands may differ, for example, pip3 instead of pip, python3 instead of python.
Select play from the menu to play the game. A random wikipedia article will be loaded for you to type. Any incorrect characters will be marked with an X. Additionally, above the Wikipedia text will be an indication of which finger should be used to type that particular key:
- Left pinky
- Left ring
- Left middle
- Left index
- Right index
- Right middle
- Right ring
- Right pinky
Press enter after every line, every sentence, or whenever you prefer to clear words on the screen. After finishing the text you will be brought to a statistics screen, which is also accessible through the main menu. You can also press escape at any time to quit typing, the words you've entered will still be counted towards your statistics.
- I chose not to use Curses to render characters directly, and instead render the entire page at once. This was to ensure that the terminal can be resized without adversely affecting gameplay. This means that the text automatically word wraps to display properly.
Having gotten a couple collaborators for certain issues I wanted to outline some potential plans for Termtype moving forward. New plans or ideas will be added here as the project progresses.
-
Different modes for finger indication. Potential to use letters (IMRP) for corresponding fingers. Also potentially a color-corresponding mode.
-
Package the project for PyPI
-
More involved statistics display

