ipypong
Play pong in Jupyter Notebooks.
Usage
The pong() function creates an interactive Pong game in your Jupyter notebook.
from ipypong import pong
pong(players=0, difficulty_level=0.9)
-
Player Modes:
players=0: Two AI playersplayers=1: One human player (left paddle) and one AI player (right paddle)players=2: Two human players
-
Controls:
- Left paddle: 'w' (up) and 's' (down)
- Right paddle: 'i' (up) and 'k' (down)
-
Customization:
difficulty_level: Set between 0.0 (easiest) and 1.0 (hardest)ball_speed: Adjust the initial speed of the ball (default: 5)canvas_widthandcanvas_height: Customize game dimensions
Contributing
Contributions, bug-reports and ideas for further development are very welcome.
License
Distributed under the terms of the BSD-3 license, "ipypong" is free and open source software
Metadata
Release files for ipypong 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ipypong-0.1.0.tar.gz | 6.6 kB | Without provenance | Details for ipypong-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ipypong-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for ipypong-0.1.0-py3-none-any.whl |
Total release size: 12.3 kB
Release files / ipypong-0.1.0.tar.gz
| Download URL | ipypong-0.1.0.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9ef54b6bc1b4b423858a759049daea4be17ca460c5148478905c2981bce77630
|
|
BLAKE2b-256 checksum How to use checksums |
5d8c29f161bc0db9d64c1d34443276b08c3df75e4ec8d9f7c30013344bfc178e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Release files / ipypong-0.1.0-py3-none-any.whl
| Download URL | ipypong-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bd258a28df6f2b0bd4c121e625e782b74b1ca72d47a1465e230cabf9e56c9f02
|
|
BLAKE2b-256 checksum How to use checksums |
53e3bfe0d99f627ca6d1105dfaa97bb2341dcb85512e25459244c5fd66d77fbd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Security for ipypong 0.1.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.