arithmetic game
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
aleix_alva 38825477c0 ANSI reset in results 2 months ago
.gitignore ignore seed 2 months ago
LICENSE Initial commit 2 months ago README 2 months ago
db_template.db vacuum db 2 months ago
numbrain.cpp ANSI reset in results 2 months ago


Arithmetic game that tries to use numbers to avoid your brain becoming numb. It stores your results in a SQLite database and takes into account usernames to allow competition between different users. At the end of each game, a top 10 ranking is shown for the current game mode.

For now, only beginner level is available. Intermediate level coming soon.


Clone the repository:

$ git clone

Enter into its directory:

$ cd numbrain

Compile the code:

$ g++ numbrain.cpp -l sqlite3 -o numbrain

Make a local copy for your database:

$ cp db_template.db numbrain.db

Execute the game:

$ ./numbrain