-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeal_analyzer.h
More file actions
32 lines (24 loc) · 775 Bytes
/
Copy pathdeal_analyzer.h
File metadata and controls
32 lines (24 loc) · 775 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
//
// Created by qzz on 2023/12/22.
//
#ifndef BRIDGE_LEARNING_PLAYCC_DEAL_ANALYZER_H_
#define BRIDGE_LEARNING_PLAYCC_DEAL_ANALYZER_H_
#include "pimc.h"
#include "alpha_mu_bot.h"
#include "common_utils/file.h"
namespace ble = bridge_learning_env;
std::vector<ble::BridgeMove> DDSMoves(const ble::BridgeState &state);
// A deal analyzer analyzes a deal played by alphamu bot and dds
// to find which move is not optimal.
class DealAnalyzer {
public:
DealAnalyzer(const std::string &save_dir) : save_dir_(save_dir) {
if (!file::Exists(save_dir)){
file::Mkdir(save_dir);
}
}
void Analyze(ble::BridgeState state, AlphaMuBot alpha_mu_bot, PIMCBot pimc_bot);
private:
const std::string save_dir_;
};
#endif //BRIDGE_LEARNING_PLAYCC_DEAL_ANALYZER_H_