Example
Time-travel game
Meet yourself in Portals
Place a portal, step back in time, and help your other self reach the star. Start with a single trip. Keep the same board and controls as meetings, lost moves, and doors enter the puzzle.
- Place the portals.The opening lessons show how the recorded moves continue after a trip back in time.
- Meet your other self.A bump removes one move from each self. The first meeting includes a forecast so you can see what changes.
- Choose the timeline.When several timelines fit, you choose which one happens. Sometimes the only way in is the timeline where your future self comes back and bumps you through.
- Predict, then Run.Later lessons leave the timeline for you to work out. Show forecast and the staged hints remain available whenever you want help.
- Hold a door from the future.Combine meetings and pressure plates on the same screen. Review the replay one step at a time and adjust your plan.
- Order the loop.The last world deals you the moves as tiles. Swap them so the meeting takes the move you can spare.
Other ways to experiment
These versions use the same time-travel rules with different controls. You can stay in Portals for its whole sequence of lessons.
- Loop Rooms: book meetings directly, with undo and redo, eight authored rooms, and random rooms at three difficulties.
- Loop: nine levels with each self's repeating moves arranged in a ring.
- Original: inspect the timeline and edit the recorded program.
An engine and its configuration
Describe a puzzle using the shared game rules
Each level is a Bosatsu value that the shared rules consume.
Puzzle configuration / Bosatsu
A board, portals, and a recording
Each level supplies values to the same puzzle type.
Reusable rules / Bosatsu
Movement, collisions, and timeline replay
The same rules consume each level’s configuration.
Yichus browser runtime / JavaScript
Controls, state updates, and display
The host executes the generated program.
The original recording editor’s tutorial board configuration:
grid_0 = empty_grid(10, 6) grid_1 = set_cell(grid_0, 1, 4, Start) grid_2 = set_cell(grid_1, 4, 4, PortalIn) grid_3 = set_cell(grid_2, 1, 3, PortalOut) grid_4 = set_cell(grid_3, 5, 3, Goal)
Puzzle configuration & engine source Read the files, then run the shipped game
Back to Yichus · Try a simulation with Why explanations
Ask your agent about anything here; it has the detail.
Where this fits
What this is about: Why an Analyzable Language?