Skip to content

real0x0a1/TypeChallenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Typing Speed Game

A simple command-line game to test your typing speed.

Prerequisites

Make sure you have Perl installed on your machine. You can check by running the following command:

perl -v

If Perl is not installed, you can download it from the official Perl website: https://www.perl.org/

How to Run

  1. Clone this repository or download the TypeChallenge.pl file.
  2. Open a terminal and navigate to the directory where the TypeChallenge.pl file is located.
  3. Run the following command:
perl TypeChallenge.pl
  1. Follow the instructions on the screen to play the game.
  2. Enjoy!

Game Instructions

  1. Random sentences will be displayed on the screen.
  2. Your task is to type the displayed sentence as quickly as possible.
  3. Press Enter when you are ready to start typing.
  4. The timer starts once you start typing.
  5. After you finish typing, the program will tell you how long it took to type the sentence and your typing speed in characters per minute.
  6. If your input matches the sentence, you will receive a congratulations message. Otherwise, you will be informed that your input doesn't match the sentence.
  7. You can play the game as many times as you want.
  8. To exit the game, type n when prompted to play again.

Sample Gameplay

Welcome to the Typing Speed Game!

Type the following sentence as quickly as possible:
The quick brown fox jumps over the lazy dog.

Press Enter when ready...
Type the sentence: The quick brown fox jumps over the lazy dog.
Congratulations! You typed it correctly.
Time taken: 3.567 seconds
Typing speed: 17 characters per minute

Play again (y/n): y

Type the following sentence as quickly as possible:
Sphinx of black quartz, judge my vow.

Press Enter when ready...
Type the sentence: Sphinx of black quart, judge my vow.
Oops! Your input doesn't match the sentence.

Play again (y/n): n

Thanks for playing!

Author

  • Ali (Real0x0a1)

About

This Perl script is a simple typing speed game where users are prompted to type a randomly selected sentence as quickly as possible.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages