mirror of
https://github.com/IAmTomShaw/f1-race-replay.git
synced 2026-05-09 16:35:49 +02:00
[PR #15] Add Battle Mode Detection & Improved F1 Leaderboard (Discovered Project via TikTok) #72
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/f1-race-replay#72
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/IAmTomShaw/f1-race-replay/pull/15
Author: @rawad-yared
Created: 11/29/2025
Status: 🔄 Open
Base:
main← Head:feature/battle-mode📝 Commits (1)
7698913Add battle mode logic and improved leaderboard (gap-to-leader + battle highlighting)📊 Changes
3 files changed (+184 additions, -58 deletions)
View changed files
📝
.gitignore(+16 -4)📝
src/arcade_replay.py(+94 -33)📝
src/f1_data.py(+74 -21)📄 Description
Hi Tom!
I came across your project on TikTok and was genuinely impressed. The concept of a full F1 race replay with real telemetry is brilliant, and I immediately wanted to contribute. I took some time to explore the codebase and built a feature that I think fits naturally with the spirit of the project.
This PR introduces a “Battle Mode” enhancement to the replay experience.
The main reasons of this addition
• It brings the replay closer to how F1 TV / live timing present race data
• Makes it much easier to spot wheel-to-wheel battles during playback
• Adds depth without changing the core replay functionality
• Enhances user experience while preserving your original design
The updated files are:
• src/f1_data.py — extended frame data, added battle detection & gap-to-leader logic
• src/arcade_replay.py — redesigned leaderboard UI layout to incorporate battle/gap info
• .gitignore — improved to exclude virtual environments, FastF1 cache, and generated data
Thanks for open-sourcing this — it’s a genuinely cool project and inspired me to dive in.
I’d be happy to keep contributing and expanding the replay features if you’re open to collaboration.
Excited to hear your thoughts!
Rawad
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.