PyScoundrel
A Python implementation of Scoundrel, a single-player roguelike card game by Zach Gage and Kurt Bieg.
Installation
pip install pyscoundrel
Play
python -m pyscoundrel
# With a fixed seed (reproducible game)
python -m pyscoundrel --seed 42
# Custom dungeon
python -m pyscoundrel --dungeon my_dungeon.yaml
Features
- Complete Scoundrel rules — monsters, weapons, potions, room avoidance
- Clean terminal UI powered by Rich
- YAML-based dungeon system for custom card pools
- Agent API for automated players and strategy experiments
- JSON event logging for game analysis
- Random seed support for reproducible playthroughs
Programmatic usage
from pyscoundrel import GameEngine, Dungeon
engine = GameEngine(seed=42)
engine.start_game()
while not engine.is_game_over:
engine.draw_room()
result = engine.face_card(0)
# inspect result.metadata to handle monsters, weapons, potions
print(f"Victory: {engine.state.victory} | Score: {engine.state.score}")
Documentation
Full documentation at pyscoundrel.readthedocs.io:
License
MIT. The original Scoundrel game is © 2011 Zach Gage and Kurt Bieg.
Metadata
Release files for pyscoundrel 0.1.7
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 |
|---|---|---|---|---|
| pyscoundrel-0.1.7.tar.gz | 26.6 kB | With provenance | Details for pyscoundrel-0.1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyscoundrel-0.1.7-py3-none-any.whl | Python 3 | none | any | Details for pyscoundrel-0.1.7-py3-none-any.whl |
Total release size: 59.5 kB
Release files / pyscoundrel-0.1.7.tar.gz
| Download URL | pyscoundrel-0.1.7.tar.gz |
|---|---|
| Size | 26.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d1d37c4e764958a1b55146a4c8f3d5eca07e6e84bd9d859f9006467333e8764c
|
|
BLAKE2b-256 checksum How to use checksums |
88092326d2745581fbe04a138c7125f79b07e7af296d89662ecb54183f47c3df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Mar 15, 2026.
Transparency logRelease files / pyscoundrel-0.1.7-py3-none-any.whl
| Download URL | pyscoundrel-0.1.7-py3-none-any.whl |
|---|---|
| Size | 33.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
654e85cb1981bba08c4ffb966120685f2f7d37517bea0a1ed5d97035ea396d89
|
|
BLAKE2b-256 checksum How to use checksums |
2cf3ff810116c2e05398f1b6898711d1407cbd20e8be5868270d2ad2d051795a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Mar 15, 2026.
Transparency logSecurity for pyscoundrel 0.1.7
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pyscoundrel-0.1.7.tar.gz
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 Mar 15, 2026.
Transparency logA 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.