ajouté interface textuelle
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user