From 7ec074f67ae29a792e718fc48f7817b3a77b81ad Mon Sep 17 00:00:00 2001 From: ymherklotz Date: Mon, 23 Jan 2017 15:18:05 +0000 Subject: Created a seperate file --- src/pawn.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/pawn.cpp') 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) { + } + } } -- cgit