← The course · Building 18 / 20

GuideSeptember 13, 20261 min readIntermediate

Replay data before connecting a live feed

Run the same sequence twice and check that it produces the same decisions.

  • #course
  • #building

What you will learn

Run the same sequence twice and check that it produces the same decisions. This is a draft lesson outline for the course preview.

The idea

A replay provides a controlled input sequence for your program. Record the event order and keep the replay clock separate from the computer's wall clock. The same inputs should explain the same decisions.

A small example

Use a short invented sequence with an ordinary update, a repeated event, a missing field, and a pause. State in advance how your program should handle each case.

Try it yourself

Run the sequence twice and compare the decision logs. Then change one input and explain exactly which later decisions should change.

Before you move on

Does the program depend on when you press Run? What state needs to be reset before another replay?

Use Next lesson below to continue the course, or return to the course overview.