DEV Community

Cover image for Train your typing speed with typing-game-cli
akgondber
akgondber

Posted on

Train your typing speed with typing-game-cli

Have you ever thought about improving your typing speed? May be you are stopped practicing developing this skill because of this looks like kinda boring? In this post I want to introduce you a program that will help you develop this skill in an interesting and fun way. This program will be especially interesting for users who live in the command line, since it is a game in the command line view.

This typing experience going to be challenging since you will compete against ... (no, not against that cat, she is beyound competition, I assure you, I tried to compete, but suffered a crushed defeat, it was a shame) a robot.

Robot you are going to compete with

To see source code of this package you could head to github repo. This program published as npm package so if you are not using nodejs you probably would have to install it first, before installing this package globally. You can install it with desired package manager, either npm or any other (pnpm/yarn, etc.), for example:

$ npm install -g typing-game-cli
Enter fullscreen mode Exit fullscreen mode

then run a program:

$ typing-game-cli
Enter fullscreen mode Exit fullscreen mode

which will result in displaying menu where you can start a new game round by pressing y key.

typing-game-cli menu

Now you should print showed text as fast as you can. Running round loooks like the following:

Running round screenshot

This way, the text you typed appears in the left box, and the robot's text appears in the right box. Your goal appropriately is to print more symbols than a robot in order to win. There is many options you can use while issuing typing-game-cli command. Let's show some of them. First of all, I suggest you pay attention to the fact that you can launch several robots having different levels of typing speed:

  • --low - low typing speed
  • --medium - medium typing speed robot
  • --fast - fast typing speed robot
  • --extra-fast - extra fast typing speed robot

When you have played at least one round with a robot you will an option to compete with yourself - in this case you would compete against your best result. This way, you will try to improve your typing speed in each round, setting new records. In order to run a game against your best result you could use --against-my-best (or its aliases, for example: --best/-b), i.e. command will look like the following:

$ typing-game-cli --against-my-best
Enter fullscreen mode Exit fullscreen mode

or

$ typing-game-cli -b
Enter fullscreen mode Exit fullscreen mode

You could see all available options int the readme or by using --help:

$ typing-game-cli --help
Enter fullscreen mode Exit fullscreen mode

For example in them menu you could press an r key to display your top results (or all results by using --show-all-history flag). Also results can be displayed by issuing a command with --display-results/-r flag:

$ typing-game-cli -r
Enter fullscreen mode Exit fullscreen mode

Happy improving your typing speed!

Top comments (0)