SCRIPTBOUND Chapter I · The Unwritten Path

Chapter I · The Unwritten Path

Xyon bound the world to one script. Yours is not it.

Xyon is precise, patient, and possessive. He wrote one script for the world and made every choice obey it. You carry a rune that still accepts new lines. Begin with short lists of steps, then learn to choose an action each heartbeat. Ten missions stand between the ruins and his gate.

Language
JavaScript
Decisions
One action each
Preview
In your browser
Completion
Server-checked
Your rune scriptbound-js-v1
function decide(hero, world, memory) {
  const enemy = hero.nearestEnemy();

  if (enemy && hero.distanceTo(enemy) === 1) {
    hero.attack(enemy);
  } else {
    hero.move("east");
  }
}

The world calls your function once per decision. It obeys exactly one action, then asks again. No packages, no network, no ambient clock.

Xyon, the antagonist of the chapter. Xyon: “A branch is a debt. Every one of yours will be paid.”

Chapter I · The Unwritten Path

Ten missions · one idea each

  1. 01 One step per line Step by Step Write one more move to reach the gate. Open mission →
  2. 02 Count your steps One More Step Count the tiles and write a move for each. Open mission →
  3. 03 A turn Around the Corner Walk east, then turn south. Open mission →
  4. 04 A zigzag The Winding Path Alternate east and south through a winding hallway. Open mission →
  5. 05 Choose a safe path A Wrong Turn Walk around an armed sentinel instead of past it. Open mission →
  6. 06 Steps First Light Write steps to walk east. Open mission →
  7. 07 Order A Turn in the Path Put steps in the right order. Open mission →
  8. 08 First if/else The Watchful Loop Attack the adjacent sentinel while it exists, then walk east. Open mission →
  9. 09 Arrays and explicit state Beacons in the Wood Use arrays and explicit memory. Open mission →
  10. 10 Combined decisions Xyon's Gate Combine movement, conditions, and repeated decisions. Open mission →

Write a decision

Every mission teaches one idea: a list of steps, their order, a decision that looks at the world, an array, and finally all of them in one program.

Rewind and branch

The client predicts every tick in your browser against the same core the server runs. Scrub back, branch with an edit, then apply it from the tick you chose.

Make it count

A preview never awards completion. A server run replays your commands through the authoritative core and sealed runs land in your Chronicle.