blob: 458b98091d7dcc13bb2e1e1326b03602eb76ac5a (
plain)
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
|
/*
*
* author: Yann Herklotz
* username: ymherklotz
* email: ymherklotz@gmail.com
* date created: 13/01/17
*
* -----------------------------------------------------------------------------
*
* Pawn class implementation
*
*/
#include "chess_piece.hpp"
#include "chess_constants.hpp"
using namespace ymhChessAI;
Pawn::Pawn() : ChessPiece() {
}
Pawn::Pawn(const int& x, const int& y, const Colour& colour) : ChessPiece(x, y, colour) {
}
void Pawn::move(const int& x, const int& y) {
if(m_colour == Colour::White) {
if(m_y == ChessConstants::WHITE_PAWN_ROW) {
}
} else {
if(m_y == ChessConstants::BLACK_PAWN_ROW) {
}
}
}
|