Skip to content

onlyworlds 0.108.0

Choose a tag to compare

@github-actions github-actions released this 09 Nov 20:04
· 234 commits to main since this release
  • trail_by_place(input): the first layout method, a world laid out along a route on a ground map, answered as a Map frame (width, height, depth), one Pin per element (whole numbers in the Map's pixels, which map_space reads back), the route, and the recipe (method: "trail-by-place" and the settings it ran with). The places come in travel order, each at its own pin plus a margin, evenly between two pinned places, or on a ring inside a parent place; every other element hangs on one spiral round the place it belongs to, the hero first, at its floor's height (TRAIL_TIERS is the default floors). Nothing shares a place's own point and no two Pins share a point; a row of the frame with no free point left is refused. The method places and does not read: the travel order and what hangs where are the caller's. The input and the recipe are the same JSON as the npm SDK's trailByPlace (4.135.1), and the answers agree: the two packages hold one shared fixture by sha256 (a whole world laid out pin for pin and eight small cases) and gave the same answer on 5,000 random inputs. An input it cannot place is a TypeError naming what.