This commit is contained in:
2025-03-30 22:43:41 +02:00
parent 0271b56542
commit f4b58fb67e
6 changed files with 99 additions and 18 deletions

View File

@@ -1,5 +1,7 @@
#pragma once
#include <string>
enum PiecesType {
CONVEX_PIECES,
@@ -19,3 +21,15 @@ inline int getSizeOfPieces(PiecesType type) {
inline PiecesType createSinglePieceType(int size) {
return PiecesType(SINGLE_PIECE + size - 1);
}
inline std::string getPiecesTypeName(PiecesType piecesType) {
static const std::string PIECES_TYPE_NAME[] = {
"CONVEX",
"HOLELESS",
"OTHER",
"ALL",
"SINGLE"
};
return PIECES_TYPE_NAME[piecesType];
}