Skip to content

feat(round-robin): break points ties by fastest single lap#321

Merged
ryan-johnson2 merged 2 commits into
develfrom
rr-fastest-lap-tiebreak
Jun 29, 2026
Merged

feat(round-robin): break points ties by fastest single lap#321
ryan-johnson2 merged 2 commits into
develfrom
rr-fastest-lap-tiebreak

Conversation

@ryan-johnson2

Copy link
Copy Markdown
Contributor

A round-robin points tie now resolves to the pilot with the faster fastest single lap (ref stays the last resort). Placement gains best_lap_micros (fastest counted lap, computed for every win condition) so the tiebreak works for FirstToLaps round-robins too; round_robin::ranking breaks score ties by each pilot's min-across-heats (no-lap sorts last).

cargo xtask ci green (no binding drift); frontend check 0 errors.

🤖 Generated with Claude Code

ryan-johnson2 and others added 2 commits June 29, 2026 02:45
A round-robin tie on points now resolves to the pilot with the faster fastest single lap (competitor
ref remains the last-resort tiebreak). To make this win-condition-independent, Placement gains
best_lap_micros (the fastest counted lap in a heat, computed for every win condition — FirstToLaps,
Timed, etc. — not just best-lap rounds); round_robin::ranking tracks each pilot's min across heats and
breaks score ties by it (a no-lap pilot sorts behind one with a lap).

cargo xtask ci green (no binding drift; Placement.ts gains best_lap_micros: number|null); frontend
check 0 errors.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ype-check)

The new Placement.best_lap_micros field made the components tests/fixtures.ts HeatResult literals
incomplete — CI's fresh @gridfpv/types build flagged 3 type errors (local check passed only because
the types dist was stale). Add the field to the fixture's three placements.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ryan-johnson2 ryan-johnson2 merged commit 28314fa into devel Jun 29, 2026
3 checks passed
@ryan-johnson2 ryan-johnson2 deleted the rr-fastest-lap-tiebreak branch June 29, 2026 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant