Ride The Duck v2
The second version of my recreation of the drinking game and Schedule 1 gambling game, 'Ride the Bus', recreated in Python using pygame for the user interface
Features
- Save File System: Uses JSON to automatically save game data to the disk, saving stats and the amount of chips there are
- Pygame: Uses Pygame to track user inputs and display information about the game
- Pypi: Published to pypi for easy installation and access
- Chip Based Betting System: Instead of using plain money or 'points', physical chips are used to indicate the value of a bet.
- Chip Exchange: Includes the ability to exchange chips with other chips of equal value
- Sound/SFX: Includes sound effects in game for different functions
- Chip Shortcuts: Features a hold down key to quickly move the chip to the exchange or betting area
- Chip Redos: Features a function/key that will redo any changes in the position of the chip (history resets upon exchanging or winning/lose a game)
- Statistics: Statistics relevant to the game is tracked and displayed when booting up the game and running out of chips (resetting game)
- Table Writing: Feature mathematically symmetrical table text and lines
Videos
Images
How To Install
Requirements:
- Any Operating System (MacOS and Windows are thoroughly tested)
- Python 3.9 or later (the latest to be safe)
- Pip 22 or later (the latest to be safe)
- Pygame 2.6.0 or later (should be installed when installing the package from Pypi)
-
You'll need to have Python and pip installed.
-
In Terminal or Command Prompt, enter the command:
pip install ride-the-duck-v2
This will install the game. This is from the Pypi package blackduck-v2
-
Once installed, you can use the commands:
rtd2ridetheduck-v2(Capitalization doesn't matter)
-
Enjoy and good luck gambling
How To Play
After running the entry command (seen above), you'll be presented with the title screen. This simply shows the stats of the current run and the title of the game. To pass this you can just press start and this will get into the main game.
When in the main part of the game, you can do 3 things: exchange your chips for different denominations (shortcut - 'x' + left click the chip), use your chips to bet (shortcut - 'z' + left click the chip), move the chip (for fun).
When exchanging, this is done by moving the chip into the top right section of the table or holding down 'x' and selecting the chip (chips are indicated that they are in the space if they have a green outline). Once moving all desired chips to the exchange area, a space on the top left will appear, showing all the chip denominations, the selected value, the value of all the chips you placed and a circular button. You'll need to press on the chips you want to exchange your chips for which has to be equal to each other. You can also hold shift and slect a chip, which, if applicable, will fill the rest of the orignal chip value with the chip selected. Once equal, the circular button will turn green and pressing it will exchange your chips and save the game's data.
When betting, this is done by moving all the chips you want to bet into the center box between the 2 buttons labeled and coloured black and red. Once all desired chips are in the the betting space (chips are indicated that they are in the space if they have a green outline), pressing either the 'black' or 'red' will start the game, the button you press indicating/is your guess on whether the next card drawn would 'black' or 'red'. There are 4 stages of the game, indicated by the text on the table labeled as: 2x, 3x, 4x, 20x which also represents the multiplier you get for beating the stage. Once you beat at least once stage, you are given the ability to 'cash out' and your original bet will be multiplied by the stage's multiplier that you're on.
The following stages are ordered by the following: 2x - Black or White, 3x - Higher or Lower the first card, 4x - Inside or Outside the cards before, 20x - Spade, Heart, Diamond or Clubs, the suit of the next card.
The rules of the game can be seen here (note that it's only the first part and that the multiplier and outcome are different)
There are 7 stats: Rounds Played, Rounds Won, Specific Multiplier Wins, Rounds Lost, Rounds Pushed Back, Money Earnt, Peak Money.
Metadata
Release files for ride-the-duck-v2 0.1.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ride_the_duck_v2-0.1.12.tar.gz | 6.2 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ride_the_duck_v2-0.1.12-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.4 MB
Release files / ride_the_duck_v2-0.1.12.tar.gz
| Download URL | ride_the_duck_v2-0.1.12.tar.gz |
|---|---|
| Size | 6.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8792c0a381827bead1bb619dca4698bfd87bb191c652afa343eb055e3b5bec9a
|
|
BLAKE2b-256 checksum How to use checksums |
09c230c2c6272b21b380284879cd8a0b79222d3554c2349ec25c5391b7aa4d86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 29, 2026.
Transparency logRelease files / ride_the_duck_v2-0.1.12-py3-none-any.whl
| Download URL | ride_the_duck_v2-0.1.12-py3-none-any.whl |
|---|---|
| Size | 6.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5955d88f71d4f61c275a4f142ea2ce3cbcf37ec47ad3479d7047ad1d4b877dfc
|
|
BLAKE2b-256 checksum How to use checksums |
c2f71a678fbd9e09da0d8e86208a1590682514bb2b8876aa7aede151cda449ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 29, 2026.
Transparency log