Giter Club home page Giter Club logo

ignition-poker-parser's Introduction

Ignition Poker parser

Parse a hand history file from Ignition Casino into Python objects. I'm trying to parse it directly, not convert to intermediate and use one of the parsers for other sites' formats. Also trying to do so without many external modules.

Ignition has anonymous players, so my main focus is on tracking stats, patterns, ranges, areas for improvement on myself.

Usage: python main.py hand_history_file.txt

Hand history files tend to be located/named like

/Applications/IgnitionCasino.app/Contents/MacOS/Hand\ History/12345678/
HH20161106-170102\ -\ 1234567\ -\ RING\ -\ \$0.02-\$0.05\ -\ HOLDEM\ -\ NL\ -\ TBL\ No.12345678.txt

And have contents like

Ignition Hand #1234567890 TBL#12345678 HOLDEM No Limit - 2016-11-06 17:01:02
Seat 1: Big Blind [ME] ($4.98 in chips)
Seat 4: Dealer ($5.02 in chips)
Dealer : Set dealer [4]
Dealer : Small Blind $0.02
Table deposit $1.50
Table enter user
Big Blind  [ME] : Big blind $0.05
*** HOLE CARDS ***
Big Blind  [ME] : Card dealt to a spot [7s Jd]
Dealer : Card dealt to a spot [9d Kd]
Dealer : Calls $0.03
Seat sit down
Big Blind  [ME] : Raises $0.05 to $0.10
Table deposit $1.50
Dealer : Calls $0.05
*** FLOP *** [8h 7h 7d]
Big Blind  [ME] : Checks

...et cetera.

Example output

['Jh', '4h'] (#3381295466)
Big Blind  [ME] : Checks

['7d', 'Jc'] (#3381295659)
Small Blind  [ME] : Folds

['Td', '6s'] (#3381295996)
Dealer  [ME] : Folds

['3s', 'Jc'] (#3381296511)
UTG+4  [ME] : Folds

['7s', 'As'] (#3381296817)
UTG+3  [ME] : Raises $0.25 to $0.25

['Th', '9h'] (#3381297248)
UTG+1  [ME] : Raises $0.15 to $0.15
UTG+1  [ME] : Calls $0.15

['As', '3h'] (#3381297552)
UTG+1  [ME] : Folds


VPIP = 3/8 = 0.375, over 7 hands.
PFR = 2/8 = 0.25, over 7 hands.
Call:
[]
Raise:
[['7s', 'As'], ['Th', '9h']]
Fold:
[['7d', 'Jc'], ['Td', '6s'], ['3s', 'Jc'], ['As', '3h']]

ignition-poker-parser's People

Contributors

zimolzak avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.