Browse Source

refactoring: Turm.c logik verbessert, Luis Hahn

remotes/origin/Läufer-fertig,-Hendrik-Voß
Luis Hahn 11 months ago
parent
commit
da5065e504
  1. 4
      src/Turm.c

4
src/Turm.c

@ -12,9 +12,7 @@ int counter = 0;
if(startX == startY){ if(startX == startY){
counter = endY-startY; counter = endY-startY;
for(int i = 0; i<counter;i++){ for(int i = 0; i<counter;i++){
if(Brett[startY+i][startX] == ' '){
}else{
if(Brett[startY+i][startX] != ' '){
return false; return false;
} }
} }

Loading…
Cancel
Save