Project Idea | TypeRacer-cli

Practice touch typing and compete with your friends all from the comfort of your shell and become a typing ninja

Features:

  • Practice mode (offline mode)
  • User stats (words per minute, time taken)
  • Online mode (have a type-race by spawning up a server and sharing it with your friends)
  • Ask for a rematch after the race ends (online mode)
  • Can view the top 10 Highscores in online mode

Installation:

To install, run below command on terminal.

npm i --global typeracer-cli

Usage:

Run



typerace

or

typerace -h

Output

Usage: typerace [options] [command]

  Options:

    -h, --help          output usage information

  Commands:

    practice|p          Start typeracer
    online|o [options]  Start game in online mode

Practice mode:

To start practice mode, run below command on terminal.

typerace p

Preview of Practice mode

Online mode:

To start online mode, run below command on terminal.

typerace o -f

Preview of Online mode

    When you start online mode you will be prompted with a question:
    Are you starting server for race (y/N) ?

    Now, there are 2 cases: