Skip to content

morbidslinky/GoTyping

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoTyping - CLI Typing Test

This interactive Go program allows the user to test their typing skills using termbox-go for real-time input and statistics.

Getting started

Upon running the application, the user is immediately met with a preface message with instructions for how to take the test. By default, the test will prompt the user with sentences to type, for 30 seconds. Once completed, the program will display statistics about the user's performance.

This typing evaluation is customizable. The user can modify the test duration, the writing prompts, the testing mode and other miscellanious variables. The default settings (such as the 30 second duration) can be customized through the config.json file, or passed in directly as arguments.

Installation

Install this go package with go get -u github.com/JosephZoeller/GoTyping and termbox-go with go get -u github.com/nsf/termbox-go

Command-line args / config.json

The typing test accepts numerous arguments:

-d ##:##

  • Duration - The length of time that the typing test will last. Format as <Minutes>:<Seconds> (default "0:30")

-f

  • Freestyle - Removes the writing prompt. The user can type without restriction and accuracy won't be measured.

-u

  • User - Defaults to the Operating System's current username. (default "Joseph")

-v

  • Verbose - Displays under-the-hood details during the test.

-c

  • Cheat - Fudges the test results to impress your peers.

Features Roadmap

  • Documentation
  • Unit testing (TODO simulate user input)
  • Benchmarking
  • Logging
  • API Library (Stopwatch, countdown)
  • CLI flags (Timer, freestyle/sentence reference)
  • Environment variables (user)
  • Concurrency (Timer)
  • Data Persistance (reference sentences, TODO user averages/statistics)
  • HTTP API (TODO user averages/statistics)

Presentation

  • 5 minute live demonstration
  • Slides & visual aides

Found a bug?

Please submit a bug report to GitHub with as much detail as possible. Please include the log.txt if applicable.

About

Typing Test with termbox-go (200106-uta-go/project-0)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 93.2%
  • HTML 4.0%
  • Makefile 2.8%