This is a library that will help you create a poker game.
Project description
PokerH Library
What is this?
This is a library that will help you create a poker game.
Library Features
Creating deck, hand, board as a list
Print the above and any lists
Print what combos are on the table
Print outs
Features of printing outs
Outs are calculated exclusively using a table taken from Roy Rounder's book
Using
Using this library is very simple and intuitive.
First we have to import everything from the library
from poker_h import *
Examples of all functions:
Creating a deck or hand
d = deck.deck()
h = deck.hand(d)
To create a board, we must specify a number, this is the number of cards that the program will distribute to the table
number = 5 #any number
b = deck.board(d, number)
To print deck, hand, board, or any other cards in the list
print(deck.print_cards(d))
To print the combos and how many outs you have (be sure to write hand and board)
print(check_hand.combos(h, b))
print(check_hand.outs(h, b))
Developer
Gimer
GitHub: link
Project details
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
File details
Details for the file poker_h-1.0.0.tar.gz
.
File metadata
- Download URL: poker_h-1.0.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d89e07ab3fe8cc95f4d9b8f728683be02b89dc37116c27a03655aa8d07356f17 |
|
MD5 | 888c5656eba0ecc84596853c10c54246 |
|
BLAKE2b-256 | 61021489bc9a53b1599fc50b3a9fe01dcfc87c8d0bb94a368a256c056e47dbcb |
File details
Details for the file poker_h-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: poker_h-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 188a3e7c477853c0a6eddaa6d1f4277be74fedb24189831eafdb4d69773dbe29 |
|
MD5 | afcbc7f1c065127a0b3f1cfda6702a41 |
|
BLAKE2b-256 | 4ab5fc8c5f4c2e348015bd5eb97c220c6fe8bb9a14b4ef963f4255fa4b93a219 |