forked from Fossana/cplusplus-cfr-poker-solver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShowdownTask.h
More file actions
34 lines (28 loc) · 745 Bytes
/
ShowdownTask.h
File metadata and controls
34 lines (28 loc) · 745 Bytes
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
#pragma once
#ifndef SHOWDOWN_TASK_H
#define SHOWDOWN_TASK_H
#include <memory>
#include "RangeManager.h"
#include "Node.h"
#include "ActionNode.h"
#include "ChanceNode.h"
#include "TerminalNode.h"
#include "tbb/task.h"
#include <stdint.h>
using std::unique_ptr;
using std::shared_ptr;
using tbb::task;
class ShowdownTask : public task
{
public:
shared_ptr<RangeManager> rangeManager;
TerminalNode* node;
int hero;
int villain;
vector<float> villainReachProbs;
uint8_t board[5];
vector<float>* result;
task* execute();
ShowdownTask(shared_ptr<RangeManager> rangeManager, vector<float>* result, TerminalNode* node, int hero, int villain, vector<float> villainReachProbs, uint8_t board[5]);
};
#endif