Skip to content

About

Each tour draws a picture with one closed line through a fixed set of points. Find a short route and add it to the gallery.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Short Tours

A gallery of drawings made with one closed line. Each drawing visits every point of an original mathematical shape and returns to where it started. Browse the gallery or open a route directly by adding its ID to the URL, such as #s002.

Add a tour

  1. Pick a route slot on the Help Build desk.
  2. Read its item in desk/items/. The item's spec names a point set in instances/ and gives the maximum route length.
  3. Write one JSON file at the item's slot_path. Follow the format.
  4. Run node tools/desk-check/local.mjs tours/s004.json, using your slot's path. The last line should start with ACCEPTED:.
  5. Open a pull request that adds only that file. Use the item ID as the title and fill in the pull request template. The Lease line takes the public lease_ref from the desk.

Bronze slots are warm-ups. Start at point zero and visit the nearest unvisited point until you have visited them all. Silver rewards a 2-opt pass. Gold targets were set from a longer search across multiple starts. All distances are measured by rounding each leg before adding it to the total. The check verifies that a tour meets its slot's fixed target. See CONTRIBUTING.md for the full rules.

Browse locally

Use Node 22 or newer. The gallery is static and has no dependencies or asset build. Generate its data index, then serve the directory over HTTP.

npm run registry -- --no-history
npm run serve

Open http://localhost:8080/. Omit --no-history in a repository checkout to credit authors from the commits that added the slot files. The deployment workflow generates tours/index.json from merged files and repository history. Regenerate that index after adding a file in a local preview.

Checks and tests

The read-only pull request workflow extracts one newly added slot file as data. The checker takes its instructions, points, target and comparison tours from the base checkout. A separate desk service merges accepted pull requests. SECURITY.md covers the trust boundary and reporting.

npm test

The tests include an independent distance and cycle oracle, adversarial input and verdict tests, and the starter kit's gate and workflow checks. Set SHORT_TOURS_NO_GIT=1 in front of the command to skip the integration tests that create disposable Git repositories.

Repository layout

Path Contents
tours/ Accepted tour files and the generated gallery index
instances/ Original point sets named by the work items
desk/items/ Seeds s001–s003 and thirty challenges s004–s033
desk/project.json, desk/words.json Slot and desk configuration
index.html, src/ Static gallery and exact distance arithmetic
tools/desk-check/ Gate, verifier, fixture generators and tests
tools/registry/ Gallery index generation and history attribution

The creator can regenerate the point sets and item definitions using node tools/desk-check/make-instances.mjs and node tools/desk-check/make-items.mjs. Coordinates and targets are part of the published challenge. Changing either can invalidate an accepted route.

Repository settings

  • Use GitHub Actions as the Pages source. The deployment job runs on pushes to main when the repository is public.
  • Give the default workflow token read access to repository contents and enable workflows on fork pull requests.
  • Bind the required check to a trusted workflow revision or have the trusted desk independently verify the exact revision it merges. A status name alone does not establish which workflow produced it.
  • Require the desk-check status for main, block force pushes and deletion, and restrict bypass to the creator. The desk's GitHub App merges through the API and needs permission to create and remove its own branches.

Code and documentation are Apache-2.0. Tours and point sets are CC BY 4.0. See NOTICE for attribution.

About

Each tour draws a picture with one closed line through a fixed set of points. Find a short route and add it to the gallery.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages