From 50444e86ea5048e05b8eb74055e0f7c4d2c5d7b7 Mon Sep 17 00:00:00 2001 From: angeld55 Date: Thu, 10 Jun 2021 18:54:25 +0300 Subject: sem 15 --- Sem. 15/Chess/Figures/Knight/Knight.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Sem. 15/Chess/Figures/Knight/Knight.h (limited to 'Sem. 15/Chess/Figures/Knight/Knight.h') 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 -- cgit v1.3.1-23-gd82d