From 91624c62c1ca6d3ffe92de2e0571755ba91a851b Mon Sep 17 00:00:00 2001 From: Arthur Bols Date: Thu, 22 Dec 2022 18:33:57 +0100 Subject: [PATCH] [Square] Make constructor public --- Square.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Square.hpp b/Square.hpp index 21f6beb..eabdd4d 100644 --- a/Square.hpp +++ b/Square.hpp @@ -26,6 +26,9 @@ public: static Optional fromIndex(Index index); static Optional fromName(const std::string &name); + Square(Index index); + + Coordinate file() const; Coordinate rank() const; Index index() const; @@ -40,9 +43,6 @@ public: static const Square A8, B8, C8, D8, E8, F8, G8, H8; private: - - Square(Index index); - Index mIndex; };