|
@ -29,6 +29,9 @@ int main(int argc, char ** argv){ |
|
|
while(winb==0 && quit==0 && looseb==0){ |
|
|
while(winb==0 && quit==0 && looseb==0){ |
|
|
Umgebung(realU); |
|
|
Umgebung(realU); |
|
|
richtung = getInput(); |
|
|
richtung = getInput(); |
|
|
|
|
|
if(richtung == 'q'){ |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
testint = update1(realU, richtung); |
|
|
testint = update1(realU, richtung); |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -37,7 +40,8 @@ int main(int argc, char ** argv){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
printf("\033[31mgame over \n"); |
|
|
|
|
|
printf("\033[0m"); |
|
|
//Name abfragen |
|
|
//Name abfragen |
|
|
|
|
|
|
|
|
//Setup |
|
|
//Setup |
|
|