wfc with edge labels in clingo
✓ Published0🌍 Public
Aaman-tiwari
Last edited Nov 17, 2017
Created on Nov 17, 2017
This visualization generates a 3×3 tile grid using Answer Set Programming in Clingo, where each cell is assigned a tile pattern (straight, corner, or empty) with edge labels indicating path or empty connections. The grid must satisfy adjacency constraints so that neighboring tile edges are connectable, and every pattern appears at least once. The logic program defines tile rotations, legal neighbor relationships via the `legal/4` predicate, and enforces consistency through integrity constraints. The example demonstrates constraint-based procedural generation of a complete, valid wfc-style layout without external rendering libraries.
AI-generated description