-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.cpp
47 lines (40 loc) · 1.62 KB
/
main.cpp
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
#include <atomic>
#include <iostream>
#include <vector>
#include "Card.h"
#include "Hand.h"
#include "Board.h"
#include "Deck.h"
#include "handstrength.h"
#include "defines.h"
//#include <string>
#include "equity.h"
int main()
{
const int hero_h1_v = 0, hero_h2_v = 0, hero_h1_s = 0, hero_h2_s = 1;
unique_ptr<HandStrengthList> hsl(new HandStrengthList);
// hsl->straitflash=0;hsl->kare=0;hsl->fullhouse=0;hsl->flash=0;hsl->strait=0;hsl->set=0; hsl->twopair=0; hsl->pair=0; hsl->hight=0;
// for (int hero_h1_s = 0; (hero_h1_s < Card::sizeSuitCardArr); ++hero_h1_s)
// {
// for (int hero_h2_s = hero_h1_s + 1; (hero_h2_s < Card::sizeSuitCardArr); ++hero_h2_s)
// {
// if (hero_h1_s != hero_h2_s)
// {
Hand hero_h{hero_h1_v, hero_h1_s, hero_h2_v, hero_h2_s};
brutforcePreFlop_Flop(hero_h, hero_h, hsl);
// }
// }
// }
unsigned long long sum_cycle = hsl->hight+hsl->pair+hsl->set+hsl->twopair+hsl->strait+hsl->flash+hsl->fullhouse+hsl->straitflash+hsl->kare;
cout << "hi : " << hsl->hight << endl;
cout << "pairs : " << hsl->pair << endl;
cout << "sets : " << hsl->set << endl;
cout << "two pairs : " << hsl->twopair << endl;
cout << "straits : " << hsl->strait << endl;
cout << "flashes : " << hsl->flash << endl;
cout << "fullhouses : " << hsl->fullhouse << endl;
cout << "straitflashes : " << hsl->straitflash << endl;
cout << "kares : " << hsl->kare << endl;
cout << "sum_cycle : " << sum_cycle << endl;
return 0;
}