poker-0.1.0.0: Texas holdem hand evaluation and simulation.
Copyright(c) Ghais Issa 2021
Safe HaskellNone
LanguageHaskell2010

Poker.Holdem.Simulate

Description

Uses Monte Carlo Methods to determine the probability for each player in a game winning. The simulation randomize each of the unknown cards in the game, this could include any number of players' cards as well as flop, turn and river.

Synopsis

Documentation

data Player Source #

A player can have 0, 1, 2 known cards.

Constructors

Player 

Fields

data Game Source #

An abstraction that represents a poker game, with some unknowns. This allows us to simulate a game from any possible state.

Constructors

Game 

Fields

simulate Source #

Arguments

:: RandomSource m DevRandom 
=> Int

Number of trajectories.

-> Game

State of the game before simulation.

-> m [Double]

Probability for each player winning the game.

Run a Monte Carlo simulation of a game returning the probability of winning for each player.