diff options
Diffstat (limited to 'src/knight.cpp')
-rw-r--r-- | src/knight.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/knight.cpp b/src/knight.cpp new file mode 100644 index 0000000..25e5ab9 --- /dev/null +++ b/src/knight.cpp @@ -0,0 +1,28 @@ +/* + * + * author: Yann Herklotz + * username: ymherklotz + * email: ymherklotz@gmail.com + * date created: 13/01/17 + * + * ----------------------------------------------------------------------------- + * + * Knight class implementation + * + */ + +#include "chess_piece.hpp" +#include <iostream> + +using namespace ymhChessAI; + + +Knight::Knight() : ChessPiece() { +} + +Knight::Knight(const int& x, const int& y, const Colour& colour) : ChessPiece(x, y, colour) { +} + +void Knight::move(const int& x, const int& y) { + std::cout << "This is a Knight" << std::endl; +} |