✨ ARCANUM RUNE DIFFICULTY: Apprentice Behavioral

The Strategy of Duels

Swapping out combat algorithms dynamically during a wizard's duel.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Strategy
ARCANUM SCHOOL: Evocation // Combat
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
interface DuelStrategy
    exposes [Strategy, executeStrategy, aggressive, defensive]
    imports []

Strategy : (U64 -> U64)

aggressive : Strategy
aggressive = \mana -> mana * 2

defensive : Strategy
defensive = \mana -> mana / 2

executeStrategy : Strategy, U64 -> U64
executeStrategy = \strat, mana ->
    strat mana
Runic Tags: #fast-functional-wards #roc #strategy #functions