use bitsets
All checks were successful
Linux arm64 / Build (push) Successful in 2m13s

This commit is contained in:
2025-07-21 16:06:27 +02:00
parent 4095103843
commit 07ba9619ed
7 changed files with 120 additions and 83 deletions

View File

@@ -16,7 +16,6 @@ class Piece {
Polyomino polyomino; // a polyomino representing the piece, (0, 0) is downleft
Block blockType; // the block type of the piece
Rotation rotationState; // the current rotation of the piece
std::vector<Position> positions; // cache positions for easier use (particularly UI)
public:
/**
@@ -37,7 +36,7 @@ class Piece {
/**
* @return The list of positions of the piece
*/
const std::vector<Position>& getPositions() const;
const Polyomino& getPositions() const;
/**
* @param the position of the square