Spanish card games on the command line. v0.1.0 ships brisca.
Project description
naipes
Juegos de cartas españolas en línea de comandos. La versión 0.1.0 incluye brisca. Futuras versiones añadirán tute, mus y más, bajo el mismo paquete.
Instalación
pip install naipes
Uso
naipes # ayuda
naipes list # lista juegos disponibles
naipes rules brisca # reglas resumidas
naipes play brisca # jugar contra la IA
naipes play brisca --seed 42 --ai-level easy
Comandos durante la partida: 1, 2, 3 para jugar una carta de tu mano; q para salir; ? para ver ayuda.
Determinismo
naipes usa un PRNG xorshift64* con valores idénticos en todas las implementaciones del proyecto (Python, JavaScript, Ruby, Rust, etc.). Misma semilla = misma partida exacta, en cualquier lenguaje.
naipes play brisca --seed 42 --ai-level normal
Esta partida produce exactamente el mismo resultado en cualquier port del proyecto. Esto permite reproducir bugs y compartir partidas memorables.
Especificación
Las reglas exactas, el protocolo CLI y los vectores de prueba están en spec/SPEC.md. Todos los ports deben pasar el mismo conjunto de vectores.
Licencia
MIT.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file naipes-0.1.0.tar.gz.
File metadata
- Download URL: naipes-0.1.0.tar.gz
- Upload date:
- Size: 14.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
990f806a048c18c97849b523fefe15b77605e368e050bf828945570c8c2d56da
|
|
| MD5 |
92e01759cc9bd680bdc2f66ae5ad038a
|
|
| BLAKE2b-256 |
d4b7bbe38574a827cc31cfc7befbeb75741ab479bc46279d5faf326f2be63721
|
File details
Details for the file naipes-0.1.0-py3-none-any.whl.
File metadata
- Download URL: naipes-0.1.0-py3-none-any.whl
- Upload date:
- Size: 16.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4bac13318f4d4ebe54f8d6c492484eefa05bc3112bfddc46f17209aeca13735f
|
|
| MD5 |
efe68f346d3c4636c71911c5476fe95c
|
|
| BLAKE2b-256 |
c1e0c360e0cafc03ae43a70f21a7aee86faeb42434ce1842dfc1f834f0b56ead
|