The Builder of Arcane Golems
Construct complex magical entities step-by-step using declarative truths.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Builder
ARCANUM SCHOOL: Transmutation // Constructmancy
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// PROLOG PATTERN //
% The Builder predicates define how to assemble components
% Base construction
golem_chassis(clay_golem, clay_torso).
golem_chassis(stone_golem, stone_torso).
golem_limbs(clay_golem, mud_arms, mud_legs).
golem_limbs(stone_golem, granite_arms, obsidian_legs).
golem_animus(clay_golem, spark_of_life).
golem_animus(stone_golem, heart_of_the_mountain).
% The Director logic
build_golem(Type, golem(Chassis, Arms, Legs, Animus)) :-
golem_chassis(Type, Chassis),
golem_limbs(Type, Arms, Legs),
golem_animus(Type, Animus).
% ?- build_golem(stone_golem, Golem).
% Golem = golem(stone_torso, granite_arms, obsidian_legs, heart_of_the_mountain).
Runic Tags:
#builder
#creational
#prolog
#construction
#magic