-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChecker.h
More file actions
34 lines (28 loc) · 752 Bytes
/
Copy pathChecker.h
File metadata and controls
34 lines (28 loc) · 752 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
//
// Created by Ziyang Zhang on 2019-05-01.
//
#ifndef CHECKER_TEACHER_CHECKER_H
#define CHECKER_TEACHER_CHECKER_H
#include <vector>
#include <map>
#include <string>
#include <set>
#include "Utils.h"
#include "Move.h"
using namespace std;
class Board;
class Checker
{
public:
string color;
int row, col;
static const map<string , string> opponent;
bool isKing;
Checker(string color,int x,int y);
void becomeKing();
void becomeMan();
vector<Move> getPossibleMoves(Board*board);
void binary_tree_traversal(int pos_x,int pos_y,vector<vector<Position> > & multiple_jump,Board& board,vector<Position> direction,vector<Position>move,string self_color);
string toString();
};
#endif //CHECKER_TEACHER_CHECKER_H