Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 15 / Chess / Figures / Pawn / Pawn.h
diff options
context:
space:
mode:
1 files changed, 11 insertions, 0 deletions
-rw-r--r--Sem. 15/Chess/Figures/Pawn/Pawn.h11
diff --git a/Sem. 15/Chess/Figures/Pawn/Pawn.h b/Sem. 15/Chess/Figures/Pawn/Pawn.h
new file mode 100644
index 0000000..675bf0b
--- /dev/null
+++ b/Sem. 15/Chess/Figures/Pawn/Pawn.h
@@ -0,0 +1,11 @@
+#pragma once
+#include "../FigureBase/Figure.h"
+
+class Pawn : virtual public Figure
+{
+ bool isFirstMove;
+public:
+ Pawn(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