Implement GF_Gun — basic guess-factor histogram #103

Open
opened 2026-08-28 22:03:08 +02:00 by SirStone · 0 comments
Owner

Parent

#99

What to build

part-of: #99

Create a guess-factor histogram gun. Unsegmented fixed-bin histogram of observed guess factors. Feeds on enemy state to record where the enemy actually was relative to the GF arc. Aims at the peak bin. Fires from tick 1 (empty histogram → center bin). Stateless across matches (resets on new match). Reads the replay tape (read-only). No training thread.

Acceptance criteria

  • feed(state) records an observed guess factor into the histogram
  • aim() returns the angle corresponding to the peak histogram bin
  • With empty histogram, aim defaults to center bin (GF=0)
  • Histogram resets on new match
  • Self-check: feed a sequence of states biased toward GF=+0.5, assert aim converges to that bin

Blocked by

None — can start immediately.

## Parent #99 ## What to build part-of: #99 Create a guess-factor histogram gun. Unsegmented fixed-bin histogram of observed guess factors. Feeds on enemy state to record where the enemy actually was relative to the GF arc. Aims at the peak bin. Fires from tick 1 (empty histogram → center bin). Stateless across matches (resets on new match). Reads the replay tape (read-only). No training thread. ## Acceptance criteria - [ ] `feed(state)` records an observed guess factor into the histogram - [ ] `aim()` returns the angle corresponding to the peak histogram bin - [ ] With empty histogram, aim defaults to center bin (GF=0) - [ ] Histogram resets on new match - [ ] Self-check: feed a sequence of states biased toward GF=+0.5, assert aim converges to that bin ## Blocked by None — can start immediately.
SirStone added the wayfinder:task label 2026-08-28 22:03:08 +02:00
SirStone added the ready-for-agent label 2026-08-28 22:15:07 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SirStone/SirRoboGarage#103