Skip to main content

Bandido Game

Representação em Python do jogo de tabuleiro Bandido — core puro para algoritmos/treino e UI opcional com pygame.

Versão: 0.1.0
Documentação da API: docs/API.md

Instalação

# core apenas (zero dependências)
pip install bandido-game

# com visualização
pip install 'bandido-game[ui]'

Desenvolvimento local:

uv sync --extra ui --extra dev
uv run pytest
uv build    # artefatos em dist/

Quick start

from bandido import GameState

game = GameState.new(seed=42)
game.place_starter((0, 0), 0)

print(len(game.deck), len(game.hand), game.open_paths)

for move in game.legal_moves():
    nxt = game.clone()
    nxt.place_from_hand(move.hand_index, move.origin, move.rotation)
    print(nxt.outcome, nxt.open_paths)
    break

UI

uv run bandido-ui           # jogo: starter → mão 3 → deck
uv run bandido-ui --random  # mapa gerado puxando do Deck

Controles: R rotaciona · Tab troca carta · D descarta mão · L legal moves · C nova partida · setas pan.

Arquitetura

bandido/
├── core/   # Cell, Card, Board, Deck, GameState — zero deps
└── ui/     # pygame (extra [ui])
Peça Papel
Card Matriz 3×6 WALL/PATH, rotações 0/90/180/270 pré-carregadas
Board Grid esparso + placement + frontier / legal_placements
Deck 69 cartas (24×2 + 7×3); peek / draw / count
GameState Partida: mão, outcome WIN/LOSS, legal_moves(), clone()

Detalhes e assinaturas: docs/API.md.

Releases / PyPI

Cada GitHub Release dispara build + publish no PyPI e anexa wheel/sdist à release.

Setup (Trusted Publisher) e checklist de versão: docs/PUBLISH.md.

Metadata

Release files for bandido-game 0.1.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 bandido-game 0.1.0
File Size Uploaded Provenance
bandido_game-0.1.0.tar.gz 24.8 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for bandido-game 0.1.0
File Interpreter ABI Platform
bandido_game-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 51.2 kB

Release files / bandido_game-0.1.0.tar.gz

Download URL bandido_game-0.1.0.tar.gz
Size 24.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ceedd4cee0ebee5671311fd7f14799149141b52e2d6c534e36eb841ed7c48883
BLAKE2b-256 checksum
How to use checksums
9205dab1e2efdde0945e58003ab823c51d840cace4c2bbe6398f09454221bcb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 2, 2026.

Transparency log

Release files / bandido_game-0.1.0-py3-none-any.whl

Download URL bandido_game-0.1.0-py3-none-any.whl
Size 26.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f01bd686f48af7f5f998cf6473372061a60f2bb22554af722f23f90c9cf08383
BLAKE2b-256 checksum
How to use checksums
a062e8e02407d5b5158d241c86fcafcb569c83a2b3712010922bf4077a40f406
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 2, 2026.

Transparency log

Security for bandido-game 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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for bandido_game-0.1.0.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 Aug 2, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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