FAILURE MAP
← Case archive

FA-86754 / Procedural level generation constraints / Member archive

Rotated prefab stamping: Locked tiles are overwritten · case 04

Quest-critical locked tiles get replaced by prefabs.

Member previewVariant 4 · 3 implementations · 8 checks per implementation

Case contract

The prefab (rows of chars, ' ' transparent) is rotated clockwise rot times (rot taken mod 4, negative allowed) and stamped with its top-left at column ox, row oy. If any non-transparent tile would land out of bounds or on a locked 'X' tile, the stamp is rejected and the original grid returned with False; otherwise the new grid with True.

Why this case matters

Procedural generators silently emit unplayable or unfair levels when a single constraint check uses the wrong boundary, axis, neighborhood or update order; the defect is visible in exact generated geometry.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
fault site locked tile check #1[[".....", "X...#", "X.X.X"], true][[".....", "X..X#", "X.X.X"], false]Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗