Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 15 / Chess / Figures / Knight / Knight.h
diff options
context:
space:
mode:
1 files changed, 11 insertions, 0 deletions
-rw-r--r--Sem. 15/Chess/Figures/Knight/Knight.h11
diff --git a/Sem. 15/Chess/Figures/Knight/Knight.h b/Sem. 15/Chess/Figures/Knight/Knight.h
new file mode 100644
index 0000000..72acfea
--- /dev/null
+++ b/Sem. 15/Chess/Figures/Knight/Knight.h
@@ -0,0 +1,11 @@
+#pragma once
+#include "../FigureBase/Figure.h"
+
+class Knight : public Figure
+{
+
+public:
+ Knight(bool isWhite);
+ bool canBeMoved(size_t currentX, size_t currentY, size_t destX, size_t destY) const override;
+ void print() const override;
+}; \ No newline at end of file