poker-h


Namepoker-h JSON
Version 1.0.2 PyPI version JSON
download
home_pagehttps://github.com/windgim
SummaryThis is a library that will help you create a poker game.
upload_time2024-08-26 03:08:36
maintainerNone
docs_urlNone
authorGimer
requires_python>=3.6
licenseNone
keywords poker pokerh poker-h holdem texas game
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <h1 align="center">PokerH</h1>

# 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

``` python
from poker_h import *
```

Examples of all functions:

Creating a deck or hand

``` python
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

``` python
number = 5 #any number
b = deck.board(d, number)
```


To print deck, hand, board, or any other cards in the list

``` python
print(deck.print_cards(d))
```


To print the combos and how many outs you have (be sure to write hand and board)

``` python
print(check_hand.combos(h, b))
print(check_hand.outs())
```


----------


## Example
``` python
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](https://github.com/windgim)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/windgim",
    "name": "poker-h",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "poker pokerh poker-h holdem texas game",
    "author": "Gimer",
    "author_email": "bashinsky04@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/aa/97/8cf296fcbbc4181b3cc70676fc39ba83194f6e4f2659c2f5118b0383fcdb/poker_h-1.0.2.tar.gz",
    "platform": null,
    "description": "<h1 align=\"center\">PokerH</h1>\r\n\r\n# About\r\n\r\n## What is this?\r\n\r\nThis is a module that will help you create a poker game.\r\n\r\n## Library Features\r\n\r\nCreating deck, hand, board as a list\r\n\r\nPrint the above and any lists\r\n\r\nPrint what combos are on the table\r\n\r\nPrint outs\r\n\r\n### Features of printing outs\r\n\r\nOuts are calculated exclusively using a table taken from Roy Rounder's book\r\n\r\nOuts can only be counted after using `check_hand.combos()`\r\n\r\n\r\n----------\r\n\r\n\r\n# Getting Started\r\n\r\n## Installation\r\n\r\n\tpip install poker-h\r\n\r\n\r\n## Usage\r\n\r\n\r\nUsing this module is very simple and intuitive.\r\n\r\nFirst we have to import everything from the module\r\n\r\n``` python\r\nfrom poker_h import *\r\n```\r\n\r\nExamples of all functions:\r\n\r\nCreating a deck or hand\r\n\r\n``` python\r\nd = deck.deck()\r\nh = deck.hand(d)\r\n```\r\n\r\n\r\nTo create a board, we must specify a number, this is the number of cards that the program will distribute to the table\r\n\r\n``` python\r\nnumber = 5 #any number\r\nb = deck.board(d, number)\r\n```\r\n\r\n\r\nTo print deck, hand, board, or any other cards in the list\r\n\r\n``` python\r\nprint(deck.print_cards(d))\r\n```\r\n\r\n\r\nTo print the combos and how many outs you have (be sure to write hand and board)\r\n\r\n``` python\r\nprint(check_hand.combos(h, b))\r\nprint(check_hand.outs())\r\n```\r\n\r\n\r\n----------\r\n\r\n\r\n## Example\r\n``` python\r\nfrom main import *\r\n\r\nd = deck.deck()\r\n\r\nb = deck.board(d, 5)\r\nh = deck.hand(d)\r\n\r\nprint(f\"Cards in hand: {deck.print_cards(h)}\")\r\nprint(f\"Cards on the table: {deck.print_cards(b)}\")\r\n\r\nprint(f\"\\nCombination with cards: {check_hand.combos(h, b)}\")\r\nprint(f\"How many outs: {check_hand.outs()}\")\r\n```\r\n\r\n\r\n----------\r\n\r\n\r\n## Developer\r\nGimer\r\n\r\nGitHub: [link](https://github.com/windgim)\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "This is a library that will help you create a poker game.",
    "version": "1.0.2",
    "project_urls": {
        "GitHub": "https://github.com/windgim",
        "Homepage": "https://github.com/windgim"
    },
    "split_keywords": [
        "poker",
        "pokerh",
        "poker-h",
        "holdem",
        "texas",
        "game"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4a7c0cff86f9e35eba6f08e858369e7e285d99ff7f9f44d342f10a186e7de6fe",
                "md5": "c9b563a1d57c0ed8f63de52bdeac9a66",
                "sha256": "2178891c8aecd8bdae57d9acf8ddcb1b817667fd2338412d48fdfb346bb4df3a"
            },
            "downloads": -1,
            "filename": "poker_h-1.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c9b563a1d57c0ed8f63de52bdeac9a66",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 3782,
            "upload_time": "2024-08-26T03:08:35",
            "upload_time_iso_8601": "2024-08-26T03:08:35.098742Z",
            "url": "https://files.pythonhosted.org/packages/4a/7c/0cff86f9e35eba6f08e858369e7e285d99ff7f9f44d342f10a186e7de6fe/poker_h-1.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "aa978cf296fcbbc4181b3cc70676fc39ba83194f6e4f2659c2f5118b0383fcdb",
                "md5": "d52e2a8dcce88c135d33a29a73884c11",
                "sha256": "faaa27bd19d36ed6a0f4ccc0ed6a8959193fb8901cef0993e3286eb68ed41079"
            },
            "downloads": -1,
            "filename": "poker_h-1.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "d52e2a8dcce88c135d33a29a73884c11",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 3728,
            "upload_time": "2024-08-26T03:08:36",
            "upload_time_iso_8601": "2024-08-26T03:08:36.421887Z",
            "url": "https://files.pythonhosted.org/packages/aa/97/8cf296fcbbc4181b3cc70676fc39ba83194f6e4f2659c2f5118b0383fcdb/poker_h-1.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-26 03:08:36",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "poker-h"
}
        
Elapsed time: 0.34721s