ajouté classe Menu

This commit is contained in:
2025-03-01 20:27:36 +01:00
parent d443b25de1
commit 8088894073
11 changed files with 136 additions and 48 deletions

View File

@@ -91,6 +91,10 @@ std::vector<std::vector<Block>> Board::getBlocks() const {
return this->grid;
}
int Board::getWidth() const {
return this->width;
}
int Board::getGridHeight() const {
return this->grid.size();
}
@@ -99,10 +103,6 @@ int Board::getBaseHeight() const {
return this->height;
}
int Board::getWidth() const {
return this->width;
}
std::ostream& operator<<(std::ostream& os, const Board& board) {
for (int y = board.grid.size() - 1; y >= 0; y--) {
for (int x = 0; x < board.width; x++) {