-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathtest_robot.cc
50 lines (45 loc) · 1.02 KB
/
test_robot.cc
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
/*
@breif 测试新加的癞子牌
@data 3/17/2018
@author liu.l
*/
#include "card.h"
#include "deck.h"
#include "hole_cards.h"
#include "community_cards.h"
#include "card_statistics.h"
#include "card_analysis.h"
#include "card_find.h"
#include "test_data/json.hpp"
// for convenience
using json = nlohmann::json;
#include <fstream>
using namespace std;
/**
* suit 0 方块 1 梅花 2 红桃 3黑桃
*
0x01, 0x11, 0x21, 0x31, //A 14
0x02, 0x12, 0x22, 0x32, //2 15
0x03, 0x13, 0x23, 0x33, //3 3
0x04, 0x14, 0x24, 0x34, //4 4
0x05, 0x15, 0x25, 0x35, //5 5
0x06, 0x16, 0x26, 0x36, //6 6
0x07, 0x17, 0x27, 0x37, //7 7
0x08, 0x18, 0x28, 0x38, //8 8
0x09, 0x19, 0x29, 0x39, //9 9
0x0A, 0x1A, 0x2A, 0x3A, //10 10
0x0B, 0x1B, 0x2B, 0x3B, //J 11
0x0C, 0x1C, 0x2C, 0x3C, //Q 12
0x0D, 0x1D, 0x2D, 0x3D, //K 13
0x0E, //小王
0x0F //大王
* @author luochuanting
*/
int main(int argc, char *argv[])
{
ifstream input("test_data/input_data.json");
json j;
input >> j;
cout << j;
return 0;
}