📚 SMALLTALK SEANCE DIFFICULTY: Adept Behavioral

Strategy: Smalltalk

Swap out the summoning chant algorithm dynamically without disrupting the main ritual.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Strategy
ARCANUM SCHOOL: Divination // Ritual Selection
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// SMALLTALK PATTERN //
Object subclass: #SummoningRitual
  instanceVariableNames: 'chantStrategy'
  classVariableNames: ''
  package: 'Tekromancy-Seance'.

SummoningRitual >> perform [
    chantStrategy executeChant.
    Transcript show: 'The portal opens!'.
]

Will you use the Enochian Chant, or the Blood Sacrifice? The context simply executes the chosen strategy.

Runic Tags: #smalltalk #behavioral #seance