poker-h 1.0.2

Creator: railscoder56

Last updated:

Add to Cart

Description:

pokerh 1.0.2

PokerH
About
What is this?
This is a module 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
Outs can only be counted after using check_hand.combos()

Getting Started
Installation
pip install poker-h

Usage
Using this module is very simple and intuitive.
First we have to import everything from the module
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())


Example
from main import *

d = deck.deck()

b = deck.board(d, 5)
h = deck.hand(d)

print(f"Cards in hand: {deck.print_cards(h)}")
print(f"Cards on the table: {deck.print_cards(b)}")

print(f"\nCombination with cards: {check_hand.combos(h, b)}")
print(f"How many outs: {check_hand.outs()}")


Developer
Gimer
GitHub: link

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.