Skip to main content

Water Jug Riddle

The player has two ungraduated jugs with two different capacities. For instance, the first one has a 5 liters capacity and the second one a 7 liters capacity. The player has 3 possible actions on each jug:

  • Fill the jug to its maximum capacity
  • Empty the jug
  • Pour the water of one jug into the other one

The main goal is to obtain all volumes from 0L to 7L. In this version of the game, the player is allowed to try every combination of capacities from 0L to 10L. To execute an action, the player can either :

  • Click on the buttons below the picture
  • Call the class'methods

Link to the demonstration :

Dependencies:

  • notebook
  • ipywidgets
  • ipycanvas
  • traitlets

Install :

pip install ipywidgets_game_jugs

Metadata

Release files for ipywidgets-game-jugs 0.2.0

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

Source distribution (sdist)

Source distribution for ipywidgets-game-jugs 0.2.0
File Size Uploaded Provenance Actions
ipywidgets_game_jugs-0.2.0.tar.gz 9.7 kB Without provenance Details for ipywidgets_game_jugs-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ipywidgets-game-jugs 0.2.0
File Interpreter ABI Platform Actions
ipywidgets_game_jugs-0.2.0-py3-none-any.whl Python 3 none any Details for ipywidgets_game_jugs-0.2.0-py3-none-any.whl

Total release size: 21.2 kB

Release files / ipywidgets_game_jugs-0.2.0.tar.gz

Download URL ipywidgets_game_jugs-0.2.0.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ac00abe9a3ab5b22a7ab2cd42aa344aa40b675b64202112d69201e0b856bc5ea
BLAKE2b-256 checksum
How to use checksums
a53261cc95844bf6841bc375cca4b3b6298e3760d751c1eacefaeb2a68175e15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

Release files / ipywidgets_game_jugs-0.2.0-py3-none-any.whl

Download URL ipywidgets_game_jugs-0.2.0-py3-none-any.whl
Size 11.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9a5cf6793b8f62405881c48516fc995bb3b9661cd0e5691db78addf32f0fbc8f
BLAKE2b-256 checksum
How to use checksums
30f1dbb10416cef69b9fb2f353c5cf61d842e845d49238679ba083d0780642ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

Security for ipywidgets-game-jugs 0.2.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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