aboutsummaryrefslogtreecommitdiffstats
path: root/src/king.cpp
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-02-25 12:59:47 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-02-25 12:59:47 +0000
commitb4336dd8f5bcd7370d9f439ea46829d7fce59e76 (patch)
treef51149312b636317aa72679879360dea26bab63d /src/king.cpp
parentb39845e0d36e5806b3f4629b1e5eeca4164572c0 (diff)
parent4e79ea68d54305e6705a3a8e83a730508b9f1c1b (diff)
downloadChessAI-master.tar.gz
ChessAI-master.zip
Fixed conflictsHEADmaster
Diffstat (limited to 'src/king.cpp')
-rw-r--r--src/king.cpp28
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;
+}