Renddslow / dunsany

Procedural generators for grand strategy game.
3 stars 0 forks source link

Dunsany

Example

import Graph, { mapFamily } from '@dunsany/relationships';
import createPantheon from '@dunsany/pantheon';

const graph = Graph();
const pantheon = createPantheon();

pantheon.deities.forEach((deity) => graph.addNode('deity', deity));
mapFamily(graph, pantheon.relationships).map(graph.addEdge);