Research existing lead-targeting code in repo #164

Closed
opened 2026-09-13 20:28:04 +02:00 by SirStone · 1 comment
Owner

Question

Search the entire SirRoboGarage repo for any existing lead-targeting, bullet prediction, or enemy velocity tracking code. Check all garages: PPO_Bot, EvoBot, OscillatorBot, QBot, and common_libs. Extract any reusable formulas, utilities, or patterns.

## Question Search the entire SirRoboGarage repo for any existing lead-targeting, bullet prediction, or enemy velocity tracking code. Check all garages: PPO_Bot, EvoBot, OscillatorBot, QBot, and common_libs. Extract any reusable formulas, utilities, or patterns.
SirStone added the wayfinder:research label 2026-09-13 20:28:04 +02:00
Author
Owner

Resolution

No lead-targeting code exists anywhere in the repo. Reusable pieces:

  • PPO_Bot_garage/src/PPO_Bot/enemy_tracker.nim — 5-slot position history, tracks x/y/speed/dir. Best reuse candidate for velocity computation.
  • Bullet speed formula 20 - 3*power in PPO_Bot and SAC_LSTM_Bot (dodge context only).
  • QBot has lateral speed discretization for Q-table aim offsets — closest to lead intent.

Adversaries: only SittingDuck (stationary) and OscillatorBot (zigzag). No wall bot or spinner — one must be built.

Research: SNNBot_garage/research/existing-lead-code.md on branch research/lead-targeting

## Resolution No lead-targeting code exists anywhere in the repo. Reusable pieces: - `PPO_Bot_garage/src/PPO_Bot/enemy_tracker.nim` — 5-slot position history, tracks x/y/speed/dir. Best reuse candidate for velocity computation. - Bullet speed formula `20 - 3*power` in PPO_Bot and SAC_LSTM_Bot (dodge context only). - `QBot` has lateral speed discretization for Q-table aim offsets — closest to lead intent. Adversaries: only SittingDuck (stationary) and OscillatorBot (zigzag). No wall bot or spinner — one must be built. Research: `SNNBot_garage/research/existing-lead-code.md` on branch `research/lead-targeting`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SirStone/SirRoboGarage#164