-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGameInfo.h
More file actions
65 lines (58 loc) · 1.77 KB
/
Copy pathGameInfo.h
File metadata and controls
65 lines (58 loc) · 1.77 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#ifndef _GAME_INFO_H_
#define _GAME_INFO_H_
#include <memory>
#include <string>
#include "Common.h"
class Params;
class GameInfo
{
public:
static void Initialize();
static const std::string &GameName(void) { return game_name_; }
static int MaxStreet(void) { return max_street_; }
static int NumPlayers(void) { return num_players_; }
static int NumRanks(void) { return num_ranks_; }
static int HighRank(void) { return num_ranks_ - 1; }
static int NumSuits(void) { return num_suits_; }
static Card MaxCard(void)
{
return MakeCard(num_ranks_ - 1, num_suits_ - 1);
}
static int FirstToAct(int st) { return first_to_act_[st]; }
static int SmallBlind(void) { return small_blind_; }
static int BigBlind(void) { return big_blind_; }
static int Ante(void) { return ante_; }
static int NumCardsForStreet(int st)
{
return num_cards_for_street_[st];
}
static int NumHoleCardPairs(int st)
{
return num_hole_card_pairs_[st];
}
static int NumBoardCards(int st)
{
return num_board_cards_[st];
}
static int NumCardsInDeck(void) { return num_cards_in_deck_; }
static int StreetPermutations(int street);
static int StreetPermutations2(int street);
static int StreetPermutations3(int street);
static int BoardPermutations(int street);
private:
static std::string game_name_;
static int max_street_;
static int num_players_;
static int num_ranks_;
static int num_suits_;
static std::unique_ptr<int[]> first_to_act_;
static int small_blind_;
static int big_blind_;
static int ante_;
static std::unique_ptr<int[]> num_cards_for_street_;
static int num_cards_in_deck_;
static unsigned long long int num_card_permutations_;
static std::unique_ptr<int[]> num_hole_card_pairs_;
static std::unique_ptr<int[]> num_board_cards_;
};
#endif