C# Class holdem_engine.Pot

A pot is defined as an amount of money which is currently able to be won by only those who are eligible. Author: Wesley Tansey
Mostra file Open project: tansey/holdem_engine

Public Methods

Method Description
Add ( double amount ) : void

Adds money to the pot.

AddPlayer ( int playerIdx, double amount ) : void

Adds a player to the pot.

GetWinners ( uint handStrengths, List winners ) : void

Gets the winners of this pot according to the given dictionary of players' hand strengths. Winners are added to the winner list.

Pot ( string potName, Seat players ) : System

Creates a new, empty Pot with the given name.

RemovePlayer ( int playerIdx ) : void

Removes a player from this pot, but keeps his money in there.

Method Details

Add() public method

Adds money to the pot.
public Add ( double amount ) : void
amount double
return void

AddPlayer() public method

Adds a player to the pot.
public AddPlayer ( int playerIdx, double amount ) : void
playerIdx int
amount double
return void

GetWinners() public method

Gets the winners of this pot according to the given dictionary of players' hand strengths. Winners are added to the winner list.
public GetWinners ( uint handStrengths, List winners ) : void
handStrengths uint An array of player hand strengths at showdown
winners List A list of winners to which to add the winners of this pot.
return void

Pot() public method

Creates a new, empty Pot with the given name.
public Pot ( string potName, Seat players ) : System
potName string
players Seat
return System

RemovePlayer() public method

Removes a player from this pot, but keeps his money in there.
public RemovePlayer ( int playerIdx ) : void
playerIdx int
return void