☎️ ERLANG HIVE DIFFICULTY: Adept Behavioral

The Strategy of the Hive Switchboard

Passing higher-order runes to dictate combat logic.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Strategy
ARCANUM SCHOOL: Evocation // Tactics
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// ERLANG PATTERN //
-module(the_strategy).
-export([execute/2]).

execute(Data, StrategyFun) ->
    StrategyFun(Data).

The Strategy

The algorithm itself is a pure lambda, hurled across the switchboard as a parameter to dictate how a spirit should act.

Runic Tags: #erlang #actors #telepathy #switchboard #strategy