Energy management and firing discipline #78

Closed
opened 2026-08-25 15:07:22 +02:00 by SirStone · 1 comment
Owner

Question

When should the bot fire vs. hold fire? How do own energy, enemy energy, and gun confidence interact to gate firing and scale power?

Parent map: #74

## Question When should the bot fire vs. hold fire? How do own energy, enemy energy, and gun confidence interact to gate firing and scale power? Parent map: https://git.fossellini.top/SirStone/SirRoboGarage/issues/74
SirStone added the wayfinder:grilling label 2026-08-25 15:07:22 +02:00
Author
Owner

Resolution

Confidence-based firing using Virtual Guns hit rate, modulated by own/enemy energy.

Firing gate:

base_threshold = 0.15
if my_energy < 30: base_threshold += 0.10
if enemy_energy < 30: base_threshold -= 0.10
if active_gun_hit_rate < base_threshold: don't fire

Power scaling with confidence:

power = formula_power × clamp(hit_rate / 0.3, 0.3, 1.0)
  • High confidence → full formula power
  • Low confidence → reduced power (conserve energy)
  • Low own energy → pickier about firing
  • Low enemy energy → more aggressive (finish them)
  • Cold start (first encounter, no weights) → silent until first champion, then fires at conservative power until window fills
  • All threshold values are calibration knobs, tuned by testing

No persisted accuracy — confidence is always earned live each match.

## Resolution **Confidence-based firing using Virtual Guns hit rate, modulated by own/enemy energy.** Firing gate: ``` base_threshold = 0.15 if my_energy < 30: base_threshold += 0.10 if enemy_energy < 30: base_threshold -= 0.10 if active_gun_hit_rate < base_threshold: don't fire ``` Power scaling with confidence: ``` power = formula_power × clamp(hit_rate / 0.3, 0.3, 1.0) ``` - High confidence → full formula power - Low confidence → reduced power (conserve energy) - Low own energy → pickier about firing - Low enemy energy → more aggressive (finish them) - Cold start (first encounter, no weights) → silent until first champion, then fires at conservative power until window fills - All threshold values are calibration knobs, tuned by testing No persisted accuracy — confidence is always earned live each match.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SirStone/SirRoboGarage#78