Skip to main content

Guess The Duck

This project is called Guess the Duck, which is a CLI Python card game where you need to guess every single card in a regular playing card deck.

Features

  • Save File: A function where, when exiting out of the terminal window, the game automatically saves the progress of the game (Decks Completed, Correct Guesses in the Deck, Cards Removed from the Deck, etc.)
  • CLI: The game runs on the Command Line Interface which presents an easy to use, and global platform.
  • Command Line Interface Size Warning: Custom function that makes sure the terminal size is wider than 100 and taller than 30
  • ASCII: This game uses ASCII art to create the image of the cards and title screen.
  • ANSI escape codes: The game includes and uses ANSI escape codes which create colour and boldness
  • Pypi: This game uses Pypi which makes the game easier to access and run.

Images

Title Image Options Image Arrow Menu Example 1 Arrow Menu Example 2 Regular Round Command Line Interface Size Warning function

How to Access/Play

Requirements:

  • MacOS or Linux device
  • Python 3.9 or later (the latest to be safe)
  • Pip 22 or later (the latest to be safe)
  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 the terminal, enter the command:

    pip install guess-the-duck
    

    This will install the game so that it's easy to run and access.

  3. Once installed, you can use the commands: GTD, guess-the-duck, playguess-the-duck, playGTD and play-GTD to run the game.

  4. Have fun and good luck.

How the Game Works

The aim of the game is to guess every single card in a regular playing card deck.

  1. When entering into the game you will encounter a title screen. When any key is pressed, you'll be given options for a suit, this will represent the suit of the card you will pick.

  2. After choosing the suit, you will be given the option to pick the card value of the card you are guessing.

  3. Then, once confirming the card, the game will (after shuffling the deck) draw the top card of the deck. This is the card that has to match your card. There will be 2 outcomes.

    1. If the card you guessed is not the same as the card on the top of the deck, the drawn card will be placed on the bottom of the deck and you will proceed to guess again
    2. If the card you guessed is the same as the card on the top of the deck, the drawn card will be removed from the deck as well as the option to pick that card. The stats will also increase showing you how many cards you have successfully guessed from the deck.
  4. When successfully guessing the card, 2 things will also happen.

    1. If there are still cards in the deck, you will have to keep guessing cards.
    2. If there are no more cards in the deck, you've successfully guessed an entire deck of playing cards. Your win counter will increase and you will be given the option to press any key to start another deck.
  5. Rinse and repeat.

Notes

This game is extremely challenging and compared to my past games, it's really difficult to guess even one entire deck.

This game is called Guess The Duck, but by now you can probably tell that it's not guessing ducks but guessing cards.

Metadata

Release files for guess-the-duck 1.0.2

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

Source distribution (sdist)

Source distribution for guess-the-duck 1.0.2
File Size Uploaded
guess_the_duck-1.0.2.tar.gz 495.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for guess-the-duck 1.0.2
File Interpreter ABI Platform
guess_the_duck-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 518.9 kB

Release files / guess_the_duck-1.0.2.tar.gz

Download URL guess_the_duck-1.0.2.tar.gz
Size 495.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6e35d3e1e71a402d3d0717d746ca3c35563b8951db6b0c52bb19a8bdd9f7b255
BLAKE2b-256 checksum
How to use checksums
8741770d207e6438f85878ec88141e464b5311d61a867d10c436c820f52d72e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 8, 2026.

Transparency log

Release files / guess_the_duck-1.0.2-py3-none-any.whl

Download URL guess_the_duck-1.0.2-py3-none-any.whl
Size 23.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4a442e034cba46db38cacdba4e902db2b59c98a0cf06b9cc492d0bd2efda8813
BLAKE2b-256 checksum
How to use checksums
6dcea71c228fe4f165744c04080cbbb5e1e1272e6102bead9c9063b25efb3903
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 8, 2026.

Transparency log
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