fichier settings

This commit is contained in:
2025-03-22 22:03:57 +01:00
parent 30dd323e22
commit 6b16abda6a
7 changed files with 138 additions and 25 deletions

View File

@@ -2,20 +2,20 @@
enum PiecesType {
CONVEX,
HOLELESS,
OTHERS,
ALL,
SINGLE
CONVEX_PIECES,
HOLELESS_PIECES,
OTHER_PIECES,
ALL_PIECES,
SINGLE_PIECE
};
inline int getSizeOfPieces(PiecesType type) {
if (type < SINGLE) return 0;
if (type < SINGLE_PIECE) return 0;
else return (type - SINGLE + 1);
else return (type - SINGLE_PIECE + 1);
}
inline PiecesType createSinglePieceType(int size) {
return PiecesType(SINGLE + size - 1);
return PiecesType(SINGLE_PIECE + size - 1);
}