diff --git a/main b/main index 478642e..108298b 100755 Binary files a/main and b/main differ diff --git a/main.cpp b/main.cpp index 20488fb..59b168c 100644 --- a/main.cpp +++ b/main.cpp @@ -5,6 +5,7 @@ const int base_zombies = 3; const int base_humans = 10000; +const int max_hours = 100000; const int attack_chance = 80; const int infection_chance = @@ -37,7 +38,7 @@ void loop(int hour, int humans, int zombies) { } } - if (new_humans <= 0 || new_zombies <= 0) { + if (new_humans <= 0 || new_zombies <= 0 || hour >= max_hours) { std::printf("finito pipo"); } else { loop(hour+1, new_humans, new_zombies);