The State: Dimensional Shifting
Alter a ward's behavior by physically moving its instruction pointer to a new plane.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: State
ARCANUM SCHOOL: Transmutation // Polymancy
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// TREFUNGE PATTERN //
> "State 1" ? v
v "State 2" h <
> "State 3" h v
@ l l < < < < <
In Trefunge, the State pattern is achieved quite literally through Dimensional Shifting. The behavior of a Three-Dimensional Topology Ward depends entirely on which Z-plane the instruction pointer currently occupies.
By triggering a state transition, the pointer is shifted up (h) or down (l) into a completely new set of planar instructions, dynamically altering the ward’s reaction to identical inputs without complex conditional logic.
Runic Tags:
#state
#trefunge
#topology
#wards