arithmetic

command module
v0.0.0-...-ce4398e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2023 License: MIT Imports: 10 Imported by: 0

README

arithmetic—quiz on simple arithmetic.

A "functional" port of the classic Unix game, for no particular reason, to Golang. Largely inspired by Eamon McManus' version that ships with bsdgames.

Key differences:

  1. Added support for Unicode symbols (÷ and ×). Use the -u flag to replace the standard ASCII symbols.
  2. Both the problem and its answer will be within the provided range.
  3. Anywhere between 15 and 30 questions are asked in a go - this helps create some variation.
  4. Limited the maximum range such that overflows are avoided. This can be seen if -r is set to 0. The original program had a limit of 100, while McManus' version had no limit to the maximum range.
  5. Penalisation is a little more lax.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL