-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProbabilityCalculator.h
More file actions
34 lines (27 loc) · 1.2 KB
/
ProbabilityCalculator.h
File metadata and controls
34 lines (27 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef PROBABILITYCALCULATOR_H
#define PROBABILITYCALCULATOR_H
#include <QVector>
#include <QPair>
class Card;
class ProbabilityCalculator
{
public:
ProbabilityCalculator();
qreal CalculatePreFlopProbability(const QPair<Card, Card> &hand);
qreal CalculateFlopToRiverProbability( const QPair<Card, Card> &hand, const QVector<Card> &flop );
qreal CalculateRiverToTernProbability( const QPair<Card, Card> &hand, const QVector<Card> &river );
qreal CalculateExpectedValue(const QPair<Card, Card> &hand, const QVector<Card> &table, qreal pot, qreal mise );
private:
quint8 CalculateCountCardsForBestCombination( const QPair<Card, Card> &hand,
const QVector<Card> &table );
bool IsFlashDraw( const QPair<Card, Card> &hand,
const QVector<Card> &table );
bool IsStreatDraw( const QPair<Card, Card> &hand,
const QVector<Card> &table );
bool IsGotShot( const QPair<Card, Card> &hand,
const QVector<Card> &table );
bool IsFlashDrawOnTable( const QVector<Card> &table );
bool IsStreatDrawOnTable( const QVector<Card> &table );
qreal CalculatePotOdds( qreal pot, qreal mise );
};
#endif // PROBABILITYCALCULATOR_H