diff --git a/day10p1/main.c b/day10p1/main.c index cafc522..b7089f2 100644 --- a/day10p1/main.c +++ b/day10p1/main.c @@ -137,14 +137,15 @@ int main() struct rect frame; + unsigned frame_id = 0; while (1) { frame = get_frame(lights, lights_len); if (frame.h <= REASONABLE_HEIGHT) break; advance_frame(lights, lights_len); + frame_id++; } GString *fname = g_string_new(NULL); - unsigned frame_id = 0; while (check_limit(frame, lights, lights_len) == 0) { g_string_printf(fname, "out/frame%03d.pbm", frame_id++); if (make_bitmap(fname->str, frame, lights, lights_len)) break; diff --git a/day10p2 b/day10p2 new file mode 120000 index 0000000..b0bda92 --- /dev/null +++ b/day10p2 @@ -0,0 +1 @@ +day10p1 \ No newline at end of file