All source listed below is under MIT license if no LICENSE file stating different is available.

Poker

Todo

  • Sort cards on key everywhere in the game (Player hand / Community cards) to gain performance. E.g. with a string function converting SA,C2 to C2,S2.
  • Add parameter to card deck if to shuffle or not. Shuffled deck is not convenient for statistics
  • Uitzoeken hoe groot kansen tussenkaart
  • Uitzoeken kans op pair before turn according to ChatGPT: Calculating these values, the probability of being dealt a pair as your starting hand in Texas Hold'em is approximately 42.26% or about 1 in 2.37.
  • Uitzoeken kaarten met opeenlopende voordelen?
  • Uitzoeken hoeveel kans hoger paar / lager paar

Observations

Overal

676 (520.552*0.5) combinations of pairs are possible. 42% kans op pair in een pot???? The probability of being dealt a pair as your starting hand in Texas Hold'em is approximately 5.88% or about 1 in 17. Pictures are high cards The probability of a high pair is approximately 0.45% or about 1 in 220. 17% waardeloos EN 17% een pair (3 player setup)?

Flop statistics

There is 30% chance that you'll win with a high card. There is 56% chance that you'll win with a pair.

Flush 0.361% FourOfAKind 0.042% FullHouse 0.289% HighCard 30.077% OnePair 56.101% Straight 0.713% ThreeOfAKind 3.851% TwoPair 8.566%

Worth of a pair

There is 44% chance that you'll get a pair in combination with the community cards. A pair gives you a winning percentage of 30% when playing with three players. There is 17% chance that you'll get a pair as first hand. There is 7% chance that you'll get a high pair (J,Q,K,A) as first hand. There is 2% chance that you'll get an Ace or any specific pair as first hand.

Recognize a full house scenario

If three card kinds on table you won't have a full house but there is a posibility of 4 of a kind.

One out of five dealings is worthless

With 17% of the hands given you'll have a succesrate of 2% what equals the amount of winnings with a high card.

Worth of a value 2 card.

Only worth while in a pair and literal 50% survival score.

Worth of a value 3 card.

A value three card is worth more than 50% if played in combination with minimal a ace or as pair

Worth of a value 4 card.

A value four card is worth more than 50% if played in combination with minimal a king or as pair

Worth of a value 5 card.

A value five card is worth more than 50% if played in combination with minimal a queen or as pair

Worth of a value 6 card.

A value five card is worth more than 50% if played in combination with minimal a farmer or as pair

Worth of a value 7 card.

A value seven card is worth more than 50% if played in combination with minimal a 10 or in rare a 9

Worth of a value 8 card.

A value eight card is worth more than 50% if played in combination with minimal a 9 or as pair

.vscode
apps
players
card.hpp
cli
cli.cpp
deck.hpp
game_details.hpp
game.hpp
gui.hpp
main.cpp
Makefile
player.hpp
poker-hand-cheat-sheet.pdf
pokerc
readme.md
score.hpp
simulate.hpp
sort.hpp
test
test.cpp