-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtriangle_piece.h
34 lines (27 loc) · 889 Bytes
/
triangle_piece.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
#ifndef TRIANGLE_PIECE_H_
#define TRIANGLE_PIECE_H_
#include <vector>
#include <stack>
#include <string>
class Board;
class Cell;
#include "board.h"
class Triangle_piece: public Game_piece {
public:
Triangle_piece(Vector_2D pos, Player_ID ownership);
virtual ~Triangle_piece();
std::string get_textual_representation() const;
bool valid_move( Vector_2D move, Board& board);
std::vector<Vector_2D> valid_moves(Board& board) const;
std::vector<Vector_2D> generate_moves(Board& board) const;
std::vector<Vector_2D> validate_moves(Board& board, std::vector<Vector_2D> moves) const;
std::vector<Vector_2D> generate_jumps(Board& board) const;
std::vector<Vector_2D> validate_jumps(Board& board, std::vector<Vector_2D> jumps) const;
virtual Triangle_piece* clone() {
return new Triangle_piece(*this);
}
virtual int worth() {
return 2;
}
};
#endif /* TRIANGLE_PIECE_H_ */