❄️ SNOBOL HEX DIFFICULTY: Apprentice Behavioral

The Memento of Snobol

Preserving the state of the universe to reverse disastrous spells.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Memento
ARCANUM SCHOOL: Chronomancy // Rewinding
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// SNOBOL PATTERN //
        * Memento Pattern in SNOBOL4
        WORLD_STATE = 'Peaceful'

        * Save state
        MEMENTO = WORLD_STATE

        * Disaster strikes
        WORLD_STATE = 'Apocalyptic Fire'
        OUTPUT = 'Current: ' WORLD_STATE

        * Restore state
        WORLD_STATE = MEMENTO
        OUTPUT = 'Restored: ' WORLD_STATE
END

The Memento is a snapshot of time, preserved safely in a pristine variable. When a spell goes terribly awry, the fabric of reality can be restored by replacing the corrupted state with the stored Memento.

Runic Tags: #snobol #behavioral #memento