Repository navigation
line-field-12
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->ranksgives 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. Withcoasta target below an agent's speed only coasts it down;flooris the least target;after_speedis every agent's target once the focus vehicle has finished.behave->wall_impactcharges a wall by the speed it is hit at, once, and an agent resting on the edge pays nothing. - API: new
sh2z_field_ranks_tandparams->ranks,brain->pace_rank,behave->wall_impact.ranksNULL andwall_impact0 give line-field-10's results bit for bit, and its hashes (the hash gainspace_rankonly 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.