From 9a86536fb579b244b29aa03fbefcce54746546dc Mon Sep 17 00:00:00 2001 From: angeld55 Date: Sat, 12 Jun 2021 19:02:26 +0300 Subject: fixes --- Sem. 15/Chess/Figures/King/King.cpp | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 Sem. 15/Chess/Figures/King/King.cpp (limited to 'Sem. 15/Chess/Figures/King/King.cpp') diff --git a/Sem. 15/Chess/Figures/King/King.cpp b/Sem. 15/Chess/Figures/King/King.cpp deleted file mode 100644 index 8ca67e8..0000000 --- a/Sem. 15/Chess/Figures/King/King.cpp +++ /dev/null @@ -1,16 +0,0 @@ -#include "King.h" -#include - -King::King(bool isWhite) : Figure(isWhite, KingFigure) -{} -bool King::canBeMoved(size_t currentX, size_t currentY, size_t destX, size_t destY) const -{ - return abs((int)currentX - (int)destX) <= 1 && abs((int)currentY - (int)destY) <= 1; -} -void King::print() const -{ - if (getIsWhite()) - std::cout << '%'; - else - std::cout << '$'; -} \ No newline at end of file -- cgit v1.3.1-23-gd82d