meilleurs coms ig
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user