started to work through errors

This commit is contained in:
Seth Samuel 2024-12-09 17:56:10 +13:00
parent c172b4e1ef
commit aa49da96bb
7 changed files with 9 additions and 3 deletions

View file

@ -76,13 +76,19 @@ int main(){
dir = DOWN;
}
if(dir==UP&&changeFromPrevLevel.front()<0){
currentLevels.erase(currentLevels.begin());
levelGoDown.pop_front();
listDirty=true;
}
if (dir==UP&&levelGoDown.size()>1){ //if the overall direction goes up and more then 1 level go down the list is bad
currentLevels.clear();
} else if (dir==DOWN&&levelGoesUp.size()>1){ //same as above but opiosite dirrection
currentLevels.clear();
}
if (levelStaysSame.size()>1){ //cant have more then 1 number the same or the list is bad
if (levelStaysSame.size()>1||(listDirty&&levelStaysSame.size()==0)){ //cant have more then 1 number the same or the list is bad
currentLevels.clear();
}