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