A simple package for create and interact a simple BlackJack environment.
Project description
veintiuno
veintinuno is a package for create and interact with a blackjack envieronment. You can find out more about this package on MyPortfolio
Installation
You can install this package using
pip install veintiuno
Usage
from veintiuno import VeintiUno
v21 = VeintiUno()
estado0 = v21.inicializar_estado()
print("\n")
print("Cartas mesa: ", estado0[0])
print("Mis cartas: ", estado0[1])
fin = False
while not fin:
accion = int(input("¿Pedir Cartas? [0 -> NO, 1 -> SI]: "))
estado, recompensa, fin = v21.ejecutar_accion(accion)
print("\n")
print("Cartas mesa: ", estado[0])
print("Mis cartas: ", estado[1])
if recompensa == 1:
print("Ganaste")
else:
print("Perdiste")
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
veintiuno-0.1.5.tar.gz
(3.2 kB
view details)
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 veintiuno-0.1.5.tar.gz.
File metadata
- Download URL: veintiuno-0.1.5.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c2cb3207b52fb2d15da10079d6fce304d5f648edb8c91431081836eaadc2bb8
|
|
| MD5 |
b1ac1a25f66ecf8cc0f0fd8be888c59a
|
|
| BLAKE2b-256 |
5836331338bccd5b951f4944aee309df2c98a79ebe793cdefa1025966673a1ac
|
File details
Details for the file veintiuno-0.1.5-py3-none-any.whl.
File metadata
- Download URL: veintiuno-0.1.5-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75c2a4949d9b3f0f1c161640840932ad8e0a163afbdd3ff48c85d14818e2023e
|
|
| MD5 |
2f7784e7470a3d7c5aeea805b4a41462
|
|
| BLAKE2b-256 |
309998c8c161cb14950cf499a48e8d3277864d4dd5ef2c9c13396988945ac942
|