Log inStart free
LESSON 16.11 · 6 STAGES · 2 CONTROLS · 3 CHECKSPRO · PREVIEW

Action granularity and duration

Watch a delivery robot use short or long actions, then retry a jammed handoff.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 2 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 16.11 · ACTION BAY2 TICKS PER ACTION · 1 BLOCKED
01
Stage 1 of 6 · One action
Each action lasts 2 ticks. An action repeat runs it on every tick, even when the robot is blocked.
Explain it simply

The world runs on a clock of ticks, with one cell per tick at most. Here the agent picks an action once, and the world repeats it for 2 ticks. Each cobalt block under the plot is one action. The repeats lose 1 tick pushing against the wall.

A plot of the robot's cell against the tick. 7 cobalt blocks, each 2 ticks wide. 1 tick blocked.

robot path, framesticks per action, decision countgate, blocked ticks, jamsactions, slot, reward, credit
01234567cell01234567891011121314151617181920tick→W→→→SSone actiongate closedopenslotk = 2decision 4: right × 2→tick 9to cell 7→tick 10blocked01234567cell01234567891011121314151617181920tick→W→→→SSone actiongate closedopenslotk = 2decision 4: right × 2→tick 9to cell 7→tick 10blocked
Toy: 8 cells, a gate that opens at tick 6, a slot on cell 7
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
at=Ajfor jk<t≤(j+1)k\sy{a}{out}{a_t} = \sy{A}{out}{A_j} \quad \text{for } j\sy{k}{param}{k} < t \le (j+1)\sy{k}{param}{k}
a9=a10=A4=righta_{9} = a_{10} = A_{4} = \text{right}

Every tick inside decision j runs that decision's action.

Common mix-ups

MYTHLonger actions always finish the task sooner.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01With 4 ticks per action, does the trip need more or fewer decisions than the 7 at 2 ticks?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 2 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.