diff --git a/src/main.c b/src/main.c index cfd8b25..b9d4efa 100644 --- a/src/main.c +++ b/src/main.c @@ -37,6 +37,7 @@ Datum: 04.12.2024 #include "pipes_test.h" #include "pipes2.h" +#include "pipes2_game.h" #ifdef __linux__ @@ -360,6 +361,7 @@ int main(int argc, char **argv){ case 'p': pipes(width, height); break; case 'P': pipes_2(width, height); break; + case 'o': pipes_2_game(width, height); break; // windows case -32:{ diff --git a/src/pipes2.c b/src/pipes2.c index 8ae9d33..c6a2b02 100644 --- a/src/pipes2.c +++ b/src/pipes2.c @@ -16,7 +16,7 @@ #define GRID_GROESSE_X 200 #define GRID_GROESSE_Y 60 -#define SLEEP_TIME 40000 +#define SLEEP_TIME 0 #define RED "\033[31m" #define GREEN "\033[32m" diff --git a/src/pipes_test.c b/src/pipes_test.c index 094d759..ee7266d 100644 --- a/src/pipes_test.c +++ b/src/pipes_test.c @@ -184,16 +184,10 @@ int print_grid(int x, int y, char **grid, int how_many_targets, int *lul) { printf(" █ █████ █████ █ █ █████ █ ██\n"); printf("\n"); printf("Targets overritten: %i\n", 2*how_many_targets-target_count); - if (target_count > 3) { - printf("\nspecial achivement!!!!!!\n"); - printf("'q' for start menue"); - return 1; - } else { - *lul += 1; - system("xdg-open https://bit.ly/3BlS71b"); - printf("'q' for start menue"); - return 1; - } + *lul += 1; + system("xdg-open https://bit.ly/3BlS71b"); + printf("'q' for start menue"); + return 1; } return 0;