aboutsummaryrefslogtreecommitdiffstats
path: root/src/king.cpp
diff options
context:
space:
mode:
authorzedarider <ymherklotz@gmail.com>2017-01-13 23:19:00 +0000
committerzedarider <ymherklotz@gmail.com>2017-01-13 23:19:00 +0000
commit8320f7ec281891501a9b3092e20d990e7fd14700 (patch)
treef2ed38f470e74c491107743eac078f23e2e3aa9e /src/king.cpp
parenteda873106d7f91214a4e4a32ee6b16889b248216 (diff)
downloadChessAI-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.cpp25
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) {
+}