Command-line and PyQt implementation of the classic "Bulls and Cows" game (yes, that same old game we all played in high-school with pen and paper).
This is if you want to download only the command-line version, because installing the QT version will install both versions.
Taken directly as is from my python_exercises repository, but I still
left it there too to keep the commit history.
This version passed black, mypy and flake8.
-
Download the latest DEB package from here https://github.com/StrayFeral/bulls_and_cows_game/tree/main/linux_packages/debian/DEBPACKAGES
-
Install. You could use apt or any package manager of your choice
apt install ./bulls-and-cows-game_1.0-1_all.deb
bulls_and_cows_game
The .deb package installs a man page as well. Not that anyone needs it, but it's there.
If you already installed the DEB package, you don't need this.
You only need to download file bulls_and_cows_game.py
.
The rest of the code is not needed for the command-line version.
./bulls_and_cows_game.py
Requires PyQt6. This version was created using the Qt Designer 6.4.3.
For this reason, this version passed no black, mypy nor flake8, as in general the PyQt convention totally breaks the general Python styleguide conventions.
DEB package is not yet available - will be available after April 2024.
-
Download the code. If you don't have git, just download it as a .zip
git clone https://github.com/StrayFeral/bulls_and_cows_game.git
-
Execute
source venv/bin/activate python -m pip install -r requirements.txt
./bulls_and_cows_game_qt.py