Welcome to the Typing Speed Test Game! This web application allows users to test and improve their typing speed in a fun and interactive way. The game presents a random paragraph for users to type within a specified time limit while tracking their performance metrics.
- Features
- Technologies Used
- Getting Started
- Usage
- How It Works
- Responsive Design
- Contributing
- License
- Typing Speed Measurement: Calculates Words Per Minute (WPM) based on user input.
- Error Tracking: Counts the number of mistakes made during typing.
- Time Limit: Users have a fixed time (60 seconds) to complete the typing task.
- Try Again Button: Allows users to restart the game easily.
- Responsive Design: Fully responsive layout that works on various screen sizes.
- HTML
- CSS
- JavaScript
To get started with the Typing Speed Test Game, follow these steps:
-
Clone the Repository
git clone https://github.com/GZ30eee/typing-speed-app.git cd typing-speed-app
-
Open in Your Browser Open
index.html
in your preferred web browser.
- Start typing the displayed text in the input field.
- The timer will start counting down from 60 seconds.
- Your WPM, mistakes, and characters per minute (CPM) will be displayed in real-time.
- Click the "Try Again" button to reset the game and load a new paragraph.
The game randomly selects a paragraph from a predefined list and displays it for the user to type. As the user types, the application tracks their input, calculates WPM and mistakes, and updates the display accordingly. The game ends when the timer reaches zero, at which point users can see their performance metrics.
loadParagraph()
: Loads a random paragraph for typing.initTyping()
: Handles user input and updates performance metrics.initTimer()
: Manages the countdown timer.resetGame()
: Resets all metrics and loads a new paragraph.
The Typing Speed Test Game is designed to be fully responsive, ensuring an optimal experience on devices of all sizes. The layout adjusts seamlessly for mobile phones, tablets, and desktops.
Contributions are welcome! If you would like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/YourFeature
). - Make your changes and commit them (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature/YourFeature
). - Open a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
Thank you for checking out the Typing Speed Test Game! We hope you enjoy testing your typing skills!