Skip to main content

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)
  1. You'll need to have Python and pip installed.

    • You can follow this to install Python
    • You can follow this to install pip
  2. 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

  3. Once installed, you can use the commands:

    • rtd2
    • ridetheduck-v2 (Capitalization doesn't matter)
  4. 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.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ride-the-duck-v2 0.1.13
File Size Uploaded
ride_the_duck_v2-0.1.13.tar.gz 6.2 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for ride-the-duck-v2 0.1.13
File Interpreter ABI Platform
ride_the_duck_v2-0.1.13-py3-none-any.whl Python 3 none any Details

Total release size: 12.4 MB

Release files / ride_the_duck_v2-0.1.13.tar.gz

Download URL ride_the_duck_v2-0.1.13.tar.gz
Size 6.2 MB
Tags Source
SHA-256 checksum
How to use checksums
4104f4081d6d76789d70ee3b9c3c2b0b953b43ffeb78967dcea4707d39d8dc94
BLAKE2b-256 checksum
How to use checksums
89836fc8a96214ae4a0e07198bbe46318c2eb31520cc7a556119cd953e5b2b56
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 30, 2026.

Transparency log

Release files / ride_the_duck_v2-0.1.13-py3-none-any.whl

Download URL ride_the_duck_v2-0.1.13-py3-none-any.whl
Size 6.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
9fdf56769667e937101b62ad59eda56ed74324ea3eb2704d55fb530542c5eda3
BLAKE2b-256 checksum
How to use checksums
74482dbc99ce688789878286e95f78342aa9fa93f240cda867dc8476074276d8
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 30, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.13 This release

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page