Skip to main content

PyScoundrel

CI PyPI Docs Python Platforms

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.

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)

Source distribution for pyscoundrel 0.1.7
File Size Uploaded
pyscoundrel-0.1.7.tar.gz 26.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyscoundrel 0.1.7
File Interpreter ABI Platform
pyscoundrel-0.1.7-py3-none-any.whl Python 3 none any Details

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 log

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

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 release files

0.1.6

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

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