Skip to content

line-field-12

Choose a tag to compare

@lamb2k lamb2k released this 22 Nov 17:32
· 42 commits to main since this release
cc10b10

Line field: pace ranks that move, the driver's slowing, and wall impacts. With every new parameter at zero it is line-field-10 step for step.

  • Change: params->ranks gives a finish target that follows each agent's pace rank. A chaser released in the last lap (or whose chased vehicle retired) joins at the rank of the nearest ranked agent and the ranking is renumbered; a retiring agent holds rank 254. With coast a target below an agent's speed only coasts it down; floor is the least target; after_speed is every agent's target once the focus vehicle has finished. behave->wall_impact charges a wall by the speed it is hit at, once, and an agent resting on the edge pays nothing.
  • API: new sh2z_field_ranks_t and params->ranks, brain->pace_rank, behave->wall_impact. ranks NULL and wall_impact 0 give line-field-10's results bit for bit, and its hashes (the hash gains pace_rank only with ranks set).
  • Tests: new checks for the nearest rank and renumbering, retirement, the hash, coast, floor, after-drive and wall impact (exact values), with 13 of 13 mutants caught.
  • Evidence: HOST: 26,143,376 checks pass under GCC (gnu11 and c11, pedantic), Clang, and GCC with ASan and UBSan; the library object has no libc memcpy, memset or memmove. CI on the merged head (host, SH-2 cross compile with the libc check, math lab, docs) passes. No instruction-model capture and no console run: there is no line field instruction model, and every per-suite model ELF is byte-identical to main's before the change (capture check in fdf5f46). Validation record.
  • Consumer (not this repository): a Saturn racing engine's native field on the line-field-10 and line-field-12 sources with every new parameter at zero, six courses, seeds 1 to 6: 72 of 72 reports equal.
  • Merge: PR #76, merge cc10b10.
  • Guide: saturn/LINE_FOLLOWER.md.