-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcommon.h
50 lines (39 loc) · 817 Bytes
/
common.h
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
// Various enums and constants used by classes
// and inclusion of common headers
#ifndef SOLVER_COMMON_H_
#define SOLVER_COMMON_H_
#include <cstdlib>
#include <vector>
#include <queue>
#include <numeric>
#include <fstream>
#include <cstdio>
#include <iostream>
#include <fstream>
#include <sstream>
#include <algorithm>
enum CellState{
kUnknown,
kBlack,
kWhite
};
enum Orientation{
kRow,
kColumn
};
enum Side{
kLeft,
kRight
};
enum SolverSpeed {
kFast,
kDynamic,
kNormal
};
const SolverSpeed kRank [] = {kFast, kDynamic, kNormal};
static const int kDummy = 0xdeadbeef;
static const int kHeuristicBound = -90;
static const int kTrue = 1;
static const int kFalse = 2;
typedef std::vector<CellState> LineState;
#endif // SOLVER_COMMON_H_