aboutsummaryrefslogtreecommitdiffstats
path: root/src/pawn.cpp
diff options
context:
space:
mode:
authorymherklotz <ymherklotz@gmail.com>2017-01-23 15:18:05 +0000
committerymherklotz <ymherklotz@gmail.com>2017-01-23 15:18:05 +0000
commit7ec074f67ae29a792e718fc48f7817b3a77b81ad (patch)
tree73afe11e47426139f378f5140a045571d39efcd8 /src/pawn.cpp
parent43910de3a8899b332e697ba210436be70e6a6f7c (diff)
downloadChessAI-7ec074f67ae29a792e718fc48f7817b3a77b81ad.tar.gz
ChessAI-7ec074f67ae29a792e718fc48f7817b3a77b81ad.zip
Created a seperate filemakeoverfinish_parser
Diffstat (limited to 'src/pawn.cpp')
-rw-r--r--src/pawn.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/pawn.cpp b/src/pawn.cpp
index 1374886..458b980 100644
--- a/src/pawn.cpp
+++ b/src/pawn.cpp
@@ -12,6 +12,7 @@
*/
#include "chess_piece.hpp"
+#include "chess_constants.hpp"
using namespace ymhChessAI;
@@ -23,4 +24,11 @@ Pawn::Pawn(const int& x, const int& y, const Colour& colour) : ChessPiece(x, y,
}
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) {
+ }
+ }
}