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/king.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/king.cpp')
-rw-r--r-- | src/king.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/king.cpp b/src/king.cpp new file mode 100644 index 0000000..0f332b7 --- /dev/null +++ b/src/king.cpp @@ -0,0 +1,25 @@ +/* + * + * author: Yann Herklotz + * username: ymherklotz + * email: ymherklotz@gmail.com + * + * ----------------------------------------------------------------------------- + * + * King class implementation + * + */ + +#include "chess_piece.hpp" + +using namespace ymhChessAI; + + +King::King() : ChessPiece() { +} + +King::King(const int& x, const int& y) : ChessPiece(x, y) { +} + +void King::move(const int& x, const int& y) { +} |