diff options
author | zedarider <ymherklotz@gmail.com> | 2017-01-13 23:19:00 +0000 |
---|---|---|
committer | zedarider <ymherklotz@gmail.com> | 2017-01-13 23:19:00 +0000 |
commit | 8320f7ec281891501a9b3092e20d990e7fd14700 (patch) | |
tree | f2ed38f470e74c491107743eac078f23e2e3aa9e /src/knight.cpp | |
parent | eda873106d7f91214a4e4a32ee6b16889b248216 (diff) | |
download | ChessAI-8320f7ec281891501a9b3092e20d990e7fd14700.tar.gz ChessAI-8320f7ec281891501a9b3092e20d990e7fd14700.zip |
made it more object oriented but removed the board implementation
Diffstat (limited to 'src/knight.cpp')
-rw-r--r-- | src/knight.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/knight.cpp b/src/knight.cpp new file mode 100644 index 0000000..c40921f --- /dev/null +++ b/src/knight.cpp @@ -0,0 +1,25 @@ +/* + * + * author: Yann Herklotz + * username: ymherklotz + * email: ymherklotz@gmail.com + * + * ----------------------------------------------------------------------------- + * + * Knight class implementation + * + */ + +#include "chess_piece.hpp" + +using namespace ymhChessAI; + + +Knight::Knight() : ChessPiece() { +} + +Knight::Knight(const int& x, const int& y) : ChessPiece(x, y) { +} + +void Knight::move(const int& x, const int& y) { +} |