#ifndef GENESIS_GEN_LOOPS_H
#define GENESIS_GEN_LOOPS_H

#include "grid.h"
#include "events.h"

#define LOOP_THRESHOLD 20

/* Punch extra doors where two passable regions are far apart (Dijkstra dist ≥
   LOOP_THRESHOLD). Returns number of loops carved. */
int add_loops(grid_t g, event_sink_t *sink);

#endif
