Skip to content

Main content

Random Fantasy Temple Pilgrimage Map Generator

Construct an exact distinct-temple directed pilgrimage obeying caller visit prerequisites and required destinations, then draw supplied ritual tags; fictional, bounded nonuniform search.

Loading tool…

Description

Construct an exact distinct-temple directed pilgrimage obeying caller visit prerequisites and required destinations, then draw supplied ritual tags; fictional, bounded nonuniform search.

Worldbuilding fixtures describe an invented setting through supplied entities and explicit relations. A reproducible arrangement can support games or writing exercises while keeping constructed history and geography separate from factual claims about the real world.

Construct an exact distinct-temple directed pilgrimage obeying caller visit prerequisites and required destinations, then draw supplied ritual tags; fictional, bounded nonuniform search.

When to use this tool

Use this generator to create reproducible fantasy temple pilgrimage map cases from the supplied model or bank. Inspect the returned evidence before using cases in a test or exercise.

How to use the tool and how it works

  1. Supply temples, travel, prerequisites, start, visitCount, requiredTempleIds in the field shapes below. Set seed when you need an explicit replay.
  2. Run the tool and correct any input error. For generated controls, distinguish a successful fixture containing an invalid case from failure to generate the fixture.
  3. Read steps, route, satisfiedPrerequisites, componentCount, fictional. Use the conventions below. Keep answer-bearing fields separate when presenting an exercise.

Validate acyclic prerequisite links and search a directed travel path without repeated temples. A destination needs every prerequisite already visited; the route must include all required temples. Sample one supplied ritual per stop and return satisfied prerequisite evidence.1

Delegated operations used for this result: topological sort. Their calculation or parsing conventions apply to the corresponding result fields.2

Input fieldMeaning and unitsAccepted input
templesTemplesRequired. Array of Object; no unknown keys.; minimum items 1; maximum items 12.
temples[].idLiteral identifier used independently of display labels.Required. Text; minimum UTF-16 length 1; maximum UTF-16 length 64.
temples[].ritualIdsRitual IdsRequired. Array of Text; minimum UTF-16 length 1; maximum UTF-16 length 64.; minimum items 1; maximum items 16.
travelTravelRequired. Array of Object; no unknown keys.; minimum items 0; maximum items 64.
travel[].fromFromRequired. Text; minimum UTF-16 length 1; maximum UTF-16 length 64.
travel[].toToRequired. Text; minimum UTF-16 length 1; maximum UTF-16 length 64.
prerequisitesPrerequisitesRequired. Array of Object; no unknown keys.; minimum items 0; maximum items 64.
prerequisites[].fromFromRequired. Text; minimum UTF-16 length 1; maximum UTF-16 length 64.
prerequisites[].toToRequired. Text; minimum UTF-16 length 1; maximum UTF-16 length 64.
startStartRequired. Text; minimum UTF-16 length 1; maximum UTF-16 length 64.
visitCountVisit CountRequired. Safe integer; minimum 1; maximum 12.
requiredTempleIdsRequired Temple IdsRequired. Array of Text; minimum UTF-16 length 1; maximum UTF-16 length 64.; minimum items 0; maximum items 12.
seedOptional numeric seed; takes precedence over context randomness. Without either, use the fixed tool.io default seed.Optional. Safe integer.
Output fieldInterpretationReturned shape
stepsStepsRequired. Array of Object; no unknown keys.; minimum items 1; maximum items 12.
steps[].numberNumberRequired. Safe integer; minimum 1; maximum 12.
steps[].templeIdTemple IdRequired. Text; minimum UTF-16 length 1; maximum UTF-16 length 64.
steps[].ritualIdRitual IdRequired. Text; minimum UTF-16 length 1; maximum UTF-16 length 64.
routeRouteRequired. Array of Text; minimum UTF-16 length 1; maximum UTF-16 length 64.; minimum items 1; maximum items 12.
satisfiedPrerequisitesSatisfied PrerequisitesRequired. Array of Object; no unknown keys.; minimum items 0; maximum items 64.
satisfiedPrerequisites[].fromFromRequired. Text; minimum UTF-16 length 1; maximum UTF-16 length 64.
satisfiedPrerequisites[].toToRequired. Text; minimum UTF-16 length 1; maximum UTF-16 length 64.
componentCountComponent CountRequired. Safe integer; minimum 1; maximum 1.
fictionalFictionalRequired. Boolean; exactly true.
randomnessReplay source and normalized 32-bit seed, or null seed for an advancing context source.Required. Object; no unknown keys.
randomness.seedOptional safe-integer replay seed; normalization and precedence are explained below.Required. Safe integer. or Null.
randomness.sourceSourceRequired. Text; one of "context", "seed".

An explicit safe-integer seed takes precedence over injected context randomness and is normalized to an unsigned 32-bit integer. With no seed and no context source, replay uses the fixed tool.io default seed. A context source must return finite values from zero inclusive to one exclusive; its advancing state must be retained separately. randomness records the source and normalized seed, or null for context. These generators are not cryptographic random sources.

json
{
  "input": {
    "temples": [
      {
        "id": "a",
        "ritualIds": [
          "light",
          "bell"
        ]
      },
      {
        "id": "b",
        "ritualIds": [
          "walk"
        ]
      },
      {
        "id": "c",
        "ritualIds": [
          "rest"
        ]
      }
    ],
    "travel": [
      {
        "from": "a",
        "to": "b"
      },
      {
        "from": "a",
        "to": "c"
      },
      {
        "from": "b",
        "to": "c"
      }
    ],
    "prerequisites": [
      {
        "from": "a",
        "to": "b"
      },
      {
        "from": "b",
        "to": "c"
      }
    ],
    "start": "a",
    "visitCount": 3,
    "requiredTempleIds": [
      "c"
    ],
    "seed": 42
  },
  "output": {
    "steps": [
      {
        "number": 1,
        "templeId": "a",
        "ritualId": "bell"
      },
      {
        "number": 2,
        "templeId": "b",
        "ritualId": "walk"
      },
      {
        "number": 3,
        "templeId": "c",
        "ritualId": "rest"
      }
    ],
    "route": [
      "a",
      "b",
      "c"
    ],
    "satisfiedPrerequisites": [
      {
        "from": "a",
        "to": "b"
      },
      {
        "from": "b",
        "to": "c"
      }
    ],
    "componentCount": 1,
    "fictional": true,
    "randomness": {
      "seed": 42,
      "source": "seed"
    }
  }
}

Limitations and assumptions

  • The start cannot have a prerequisite and visitCount must fit the temple bank. First-feasible search is bounded and not a shortest-route solver; rituals and locations are fictional labels.
  • A replay requires the same complete input and implementation. The stated sampling convention applies within its eligible space. A finite draw does not exhaust all possible outputs; repeats remain possible unless a distinct-selection rule is explicit.
  • The field tables state structural bounds; cross-field constraints and bounded search or output budgets also apply. Unknown keys are rejected where the object contract disallows them. Input errors are distinct from null fields and deliberate invalid controls in a successful output.

Alternative or Complementary methods

For a supplied example, inspect the returned construction or delegated check directly. To evaluate a consumer, also test cases chosen for its own boundaries; a generated finite corpus does not establish exhaustive coverage.

References

  1. Tool behavior and example: Random Fantasy Temple Pilgrimage Map Generator — tool.io

  2. Calculation or validation: graph/topological-sort — tool.io

Similar or alternative tools