pull/8/head
MuedeHydra 2024-12-17 09:37:01 +01:00
parent 1a4f0576a3
commit aa32c0565a
1 changed files with 8 additions and 4 deletions

View File

@ -212,7 +212,7 @@ void print_help(){
printf("j \t Ein Programm nach unten\n");
printf("k \t Ein Programm nach oben\n");
printf("Enter \t Um das ausgewählte Programm zu starten\n");
printf("1-n \t Um das n Programm zu starten\n");
printf("1 - 9 \t Um das n Programm zu starten\n");
printf("q \t Um das Programm zu beenden\n");
printf("\nDrücke eine Taste um zurück zu kommen\n");
char key_input = (char)getch();
@ -267,10 +267,10 @@ void run_programm(int programm, int width, int height, bool *used){
}
void speed(int width, int height, int *start_time, bool *used){
if (*start_time + 20 < time(0)){
if (*start_time + 30 < time(0)){
return;
}
for (int i = 0; i < 5; i++){
for (int i = 0; i < 6; i++){
if (used[i] == 0){
return;
}
@ -294,7 +294,7 @@ int main(int argc, char **argv){
int height = 0;
int line = 0;
bool run = true;
bool *used = (bool[5]){0};
bool *used = (bool[6]){0};
int start_time = time(0);
bool arrows = false;
if (argc >= 2 && strcmp(argv[1], "--ich-benutze-windows-und-bin-auf-die-pfeiltasten-angewiesen") == 0){
@ -409,6 +409,10 @@ int main(int argc, char **argv){
case '3': run_programm(2, width, height, used); break;
case '4': run_programm(3, width, height, used); break;
case '5': run_programm(4, width, height, used); break;
case '6': run_programm(5, width, height, used); break;
case '7': run_programm(6, width, height, used); break;
case '8': run_programm(7, width, height, used); break;
case '9': run_programm(8, width, height, used); break;
default: printf(" Es wurde die Taste: %i gedrückt\n", key_input); // getch();
}