Skip to main content

Poker hand evaluator written and tested in Python

Project description

py_ev is about to be a light-weight poker open-source library written and tested in Python to help all programmers around the world build their poker connected applications.

Installation

pip install py_ev

Requirements

  • Python 3.x

Current functionalities

from py_ev import Evaluator

ev = Evaluator()
  • Evaluator

    • evaluate()

    print(ev.evaluate([(3, 3), (3, 2)], [(2, 2), (11, 3), (3, 4), (10, 2), (7, 3)]))
    # prints 4000420
    • equity()

    print(ev.equity(100000, [(2, 3), (3, 2)], [(3, 3), (4, 2)]))
    # 100000 hands evaluated
    # prints (20.28, 30.8, 48.93)
    # Function returns a tuple: (cards_1_won, cards_2_won, draw)

Future development

Those are just examples of possible directions. Concrete decisions will be made when some contributors join the project.

  1. Adding the most popular poker variants: PLO, 6plus.

  2. Hand history and tournaments summaries parsers.

  3. Data extraction from poker operators (hhs-mining, traffic-mining, etc).

  4. Sitting scripts.

Feel free to open a feature request.

How to join this project?

  1. It’s as easy as clicking a “star” icon on the top. It really helps!

  2. We are looking for contributors. If you feel like joining the ranks, read THIS article.

Every help is appreciated. No matter what your programming skills are. You can: - improve README - write new testcases - document code with Docstrings - and of course write a new feature!

Feel free to contact me privately on jkbielan@gmail.com

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

py_ev-0.0.10.tar.gz (4.7 kB view details)

Uploaded Source

File details

Details for the file py_ev-0.0.10.tar.gz.

File metadata

  • Download URL: py_ev-0.0.10.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for py_ev-0.0.10.tar.gz
Algorithm Hash digest
SHA256 be10ee9c2164fdd4d0987137cf694a554d84de923802d3f3eec7c3c82344f5e5
MD5 f8f04670b3d938b6a764b68c322a47c6
BLAKE2b-256 e58444f2c4df8789c073270e7bbc423b3b1537ed09f5d0e829d81a0252492257

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page