meilleurs coms ig

This commit is contained in:
2025-03-03 22:34:46 +01:00
parent d029589c21
commit 2fbe4a6052
13 changed files with 56 additions and 78 deletions

View File

@@ -8,6 +8,7 @@
#include <vector>
#include <set>
#include <memory>
#include <utility>
#include <cstdlib>
@@ -150,7 +151,6 @@ bool GameBoard::tryKicking(bool testingBottom, const std::set<Position>& safePos
}
}
// do the same on the left side
if (overlapsLeft) {
Position shift{-i, j};
if (!this->activePieceOverlaps(safePositions, shift)) {
@@ -220,7 +220,6 @@ bool GameBoard::hold(Rotation initialRotation) {
this->heldPiece->defaultRotation();
// this piece has done nothing yet
this->isLastMoveKick = false;
return true;
@@ -232,8 +231,6 @@ bool GameBoard::spawnNextPiece() {
this->nextQueue.erase(this->nextQueue.begin());
this->goToSpawnPosition();
// this piece has done nothing yet
this->isLastMoveKick = false;
return this->activePieceInWall();