-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRook.cpp
More file actions
30 lines (24 loc) · 760 Bytes
/
Copy pathRook.cpp
File metadata and controls
30 lines (24 loc) · 760 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
/****************************************************/
/* */
/* Date Created: 02/12/14 */
/* Description: Implementation of Rook class. */
/* A rook is a ChessPiece */
/* */
/* Date Who Description of Change */
/* 20141202 HL Created. */
/****************************************************/
#include <string>
#include <cstdlib>
#include "Rook.hpp"
using namespace std;
Rook::Rook(colours _colour) {
colour = _colour;
moves[0] = NORTH;
moves[1] = SOUTH;
moves[2] = EAST;
moves[3] = WEST;
number_of_moves = 4;
}
Rook::~Rook() {
return;
}