ajouté interface textuelle

This commit is contained in:
2025-03-02 23:36:20 +01:00
parent 857f90d646
commit 1033f3a64c
21 changed files with 646 additions and 113 deletions

View File

@@ -78,9 +78,9 @@ class Polyomino {
public:
/**
* @return A copy of the positions of the polyomino
* @return The positions of the polyomino
*/
std::set<Position> getPositions() const;
const std::set<Position>& getPositions() const;
/**
* @return The length of the polyomino
@@ -103,7 +103,7 @@ class Polyomino {
* Equality operator, two polyominos are equal if their positions are the same, that means two polyominos of the same shape at different places will not be equal
* @return If the polyomino is equal to another
*/
bool operator ==(const Polyomino& other) const;
bool operator==(const Polyomino& other) const;
/**
* Stream output operator, adds a 2D grid representing the polyomino