TBTS is an open-source terminal-based solo trivia game made in Python designed for those big-brained people that get sleepy on computer science classes because everything is so easy/so outdated they can't even afford to care about it.
As this is a terminal-based game, it can be played kinda unnoticed by teachers (at least if you're on a computer science course), and you're going to learn more from this than whatever they're talking on class.
This game is powered by OpenTDB to get questions. I'm not responsible on what's going on there, proceed with caution, buckaroo!
Each run is 15 questions, the highest score you can get is 45,000 as you have to be very quick with your answers. Questions itself have
no time and you can answer whenever you want (though you may not get points at all lol)
You can access to any of the binaries available on this repository at Releases tab
If you're not a fan of binaries, here's a list of instructions on how to build the project from source. Obviously the first thing you have to do is cloning the repository on your local machine.
Once you've got a local copy of the repository, you may need to install all requirements that proceed. This can be easily done using pip by running the following command:
[sudo] pip install -r requirements.txtAfterwards, you can quickly run the game by using the following command on the root directory of the repository:
[sudo] py cli.pyNote that linux may not have the py command itself, you may need to use python or python3 in order to run python
Note that keyboard module may require of sudo permissions on linux when running from source. You may have to re-install requirements on root depending on your configuration
Note that keyboard module may have issues installing on linux, you can use --break-system-packages at your own risk
Using pyinstaller after you cloned the repository, you can simply run the following command:
[sudo] pyinstaller cli.py --onefile --name TBTS --icon=assets/icon.icoThis should generate a file at the new generated directory dist/ named TBTS.exe if you're running on Windows.
As long as your additions are not trivial 😉, you can always post an issue and/or making a pull request. Please be polite!
If you want to support me and my work, consider to buy me a coffee ✨☕