Skip to content

Poker Hands Analyzer

ngr edited this page Nov 30, 2014 · 4 revisions

Poker Hands Analyzer

What?

This is an application to analyze the probability of winning or loosing a given hand with respect to the other cards visible. This might be upgraded to take the number of players and position at the table into account.

How?

This is a Python 3 application.

Classes

Card

  • get_value
  • get_suite
  • is_greater

Hand

  • get_prob?

Deck

This is not a random deck for playing. It holds the cards hidden from the player at the moment to calculate probabilities.

  • deal(card)
  • left_kind
  • left_suit
  • get_prob(card)
  • get_prob(suit)

Table

All available cards (Flop + Turn + River + Folded open)

  • get_pairs
  • get_sets
  • get_straight
  • get_flush
  • get_foak (four of a kind)
Clone this wiki locally