/mathgame

Game to play with additions, substractions and multiplications

Primary LanguagePython

# SPDX-FileCopyrightText: 2021 Ricardo Garcia <r@rg3.name>
# SPDX-License-Identifier: CC0-1.0

MathGame: Game to play with additions, substractions and multiplications

Usage: mathgame.py add|sub|mul NUMBER_FROM_1_TO_10...

The first argument is the type of operation to play with.

    * add means additions.
    * sub means substractions.
    * mul means multiplications.

The second and subsequent arguments are the "tables" to use in the questions,
and they should be numbers from 1 to 10. For example, to play with additions
using in the form of 2+SOMETHING and 6+SOMETHING, use:

    mathgame.py add 2 6

To stop playing the game at any point in time, answer "q" to the question or
press Ctrl+C.