the offline track
this track names a topic and its cited lines for each step, so you can read the claim where the code decides it. The commands and printed outputs live on the topic page; nothing here starts a world, a network or a machine. This school declared no saved front-door outputs, so no recordings are listed.
-
1. junior grug: meet the model
grep -n 'export type Game' state.tsno saved output was declared for this step; the source check below is the evidence here
grep -n 'export type Game' state.ts --- 6:export type Game = { // aggregate: one value holds the whole round -
2. junior grug: snapshot the keys
grep -n 'export function read_input' input.tsno saved output was declared for this step; the source check below is the evidence here
grep -n 'export function read_input' input.ts --- 13:export function read_input(keys: KeyReader): Input { -
3. junior grug: draw from state
grep -n 'export function draw_game' draw.tsno saved output was declared for this step; the source check below is the evidence here
grep -n 'export function draw_game' draw.ts --- 9:export function draw_game(game: Game): DrawCommand[] { // draw_game: read the round, paint the frame -
4. mid grug: step in equal slices
grep -n 'FIXED_STEP =' update.tsno saved output was declared for this step; the source check below is the evidence here
grep -n 'FIXED_STEP =' update.ts --- 6:export const FIXED_STEP = 1 / 120; // 120: one slice is one hundred twentieth of a second -
5. mid grug: split the collisions
grep -n 'export function resolve_paddle_hits' update.tsno saved output was declared for this step; the source check below is the evidence here
grep -n -E 'hface|vface' update.ts --- 62:export function resolve_paddle_hits(game: Game): void { // hface: paddle contact corrects x only 73:export function resolve_wall_hits(game: Game): void { // vface: wall contact corrects y only