diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-02-25 12:59:47 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-02-25 12:59:47 +0000 |
commit | b4336dd8f5bcd7370d9f439ea46829d7fce59e76 (patch) | |
tree | f51149312b636317aa72679879360dea26bab63d /src/king.cpp | |
parent | b39845e0d36e5806b3f4629b1e5eeca4164572c0 (diff) | |
parent | 4e79ea68d54305e6705a3a8e83a730508b9f1c1b (diff) | |
download | ChessAI-b4336dd8f5bcd7370d9f439ea46829d7fce59e76.tar.gz ChessAI-b4336dd8f5bcd7370d9f439ea46829d7fce59e76.zip |
Diffstat (limited to 'src/king.cpp')
-rw-r--r-- | src/king.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/king.cpp b/src/king.cpp new file mode 100644 index 0000000..1d297d3 --- /dev/null +++ b/src/king.cpp @@ -0,0 +1,28 @@ +/* + * + * author: Yann Herklotz + * username: ymherklotz + * email: ymherklotz@gmail.com + * date created: 13/01/17 + * + * ----------------------------------------------------------------------------- + * + * King class implementation + * + */ + +#include "chess_piece.hpp" +#include <iostream> + +using namespace ymhChessAI; + + +King::King() : ChessPiece() { +} + +King::King(const int& x, const int& y, const Colour& colour) : ChessPiece(x, y, colour) { +} + +void King::move(const int& x, const int& y) { + std::cout << "This is the king" << std::endl; +} |