feat(PPO_Bot): bot-relative bullets + scan staleness (STATE_DIM=57)

- Bullet state (indices 44-55): enemy-relative → bot-relative frame
  (bot needs threat vectors to itself for dodging, not to enemy)
- New index 56: scan staleness = min(ticksSinceLastScan / 30, 1.0)
  (gives policy a confidence signal for enemy data freshness)
- warm_start.py updated: 44→57 dim expansion, TARGET_DIM variable
- Tests updated for new state layout

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-08-20 14:27:28 +02:00
parent 6ad51148f4
commit 12624d3069
7 changed files with 718 additions and 16 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import arraymancer
import std/[math, random]
const
STATE_DIM* = 56
STATE_DIM* = 57
ACTION_DIM* = 6
var