Speed Typer is a simple yet engaging typing game designed to test and improve your typing speed and accuracy. Players are tasked with typing randomly presented words within a time limit while the game tracks their performance metrics.
SpeedTyper/
├── src/ │
├── speed-Typer.sh # Main game logic │
├── analyzer.sh # Data analysis script │
├── library.sh # library file for analyzer
├── library.sh # Utility functions (if applicable) │
├── config.cfg # Configuration file
├── data/ │
├── game-data.log # Game data log │
├── stats.log # Analysis output log
└── README.md # Project documentation
- Random words are presented to the player.
- Players earn points based on correct entries and word lengths.
- Tracks the time taken for each word and evaluates typing speed.
- Records player performance data in a log file.
analyzer.shprocesses game data for insights such as:- Top scorer identification.
- User accuracy analysis.
- Average typing speed.
- Bash shell (version 4.0 or later recommended)
- Ensure the
config.cfgfile is properly set up with the following variables:gamePath="/path/to/game" # Root directory of the game textFile="words.txt" # Name of the text file containing words time_limit=60 # Time limit for each game in seconds
- Clone or download the repository.
- Ensure
srcanddatadirectories are correctly structured as shown above. - Place a valid
words.txtfile in the/resourcefolder withingamePathdefined inconfig.cfg.
- Navigate to the
srcdirectory:cd src - Run the main game script:
./core.sh
- Follow on-screen instructions to play the game. Your performance will be logged in data/game-data.log.
- Run the analyzer script:
./analyzer.sh
- Results will be saved to data/stats.log:
- Top scorer
- Performance metrics (if additional features are implemented)
username, score, [(word1, typedWord1, time1, true), (word2, typedWord2, time2, false)]============
date: 2024-11-18
Top Scorer:
Alice - 120 points
Analysis results saved to data/stats.log.
============