From 8320f7ec281891501a9b3092e20d990e7fd14700 Mon Sep 17 00:00:00 2001 From: zedarider Date: Fri, 13 Jan 2017 23:19:00 +0000 Subject: made it more object oriented but removed the board implementation --- src/rook.cpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/rook.cpp (limited to 'src/rook.cpp') diff --git a/src/rook.cpp b/src/rook.cpp new file mode 100644 index 0000000..166e114 --- /dev/null +++ b/src/rook.cpp @@ -0,0 +1,25 @@ +/* + * + * author: Yann Herklotz + * username: ymherklotz + * email: ymherklotz@gmail.com + * + * ----------------------------------------------------------------------------- + * + * Rook class implementation + * + */ + +#include "chess_piece.hpp" + +using namespace ymhChessAI; + + +Rook::Rook() : ChessPiece() { +} + +Rook::Rook(const int& x, const int& y) : ChessPiece(x, y) { +} + +void Rook::move(const int& x, const int& y) { +} -- cgit From a5bc94a36fe37fb20eba61516da3b6b58208537b Mon Sep 17 00:00:00 2001 From: ymherklotz Date: Sat, 14 Jan 2017 14:17:26 +0000 Subject: added colour to pieces and comments --- src/rook.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rook.cpp') diff --git a/src/rook.cpp b/src/rook.cpp index 166e114..cba38a9 100644 --- a/src/rook.cpp +++ b/src/rook.cpp @@ -18,7 +18,7 @@ using namespace ymhChessAI; Rook::Rook() : ChessPiece() { } -Rook::Rook(const int& x, const int& y) : ChessPiece(x, y) { +Rook::Rook(const int& x, const int& y, const Colour& colour) : ChessPiece(x, y, colour) { } void Rook::move(const int& x, const int& y) { -- cgit From 1f138d96ab7f517e7842710ef3428f67a2965877 Mon Sep 17 00:00:00 2001 From: ymherklotz Date: Sun, 15 Jan 2017 19:44:15 +0000 Subject: creating the board --- src/rook.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/rook.cpp') diff --git a/src/rook.cpp b/src/rook.cpp index cba38a9..cd72029 100644 --- a/src/rook.cpp +++ b/src/rook.cpp @@ -3,6 +3,7 @@ * author: Yann Herklotz * username: ymherklotz * email: ymherklotz@gmail.com + * date created: 13/01/17 * * ----------------------------------------------------------------------------- * -- cgit