attack_verify

command
v0.6.0-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Command attack_verify is the 720p review harness: it proves the attack plan is correct BEFORE a battle is spent on it, by rendering exactly what the bot would tap onto a live (or saved) 720p battle screenshot.

What it checks:

  • formula.json loads, mirrors and projects to the live screen the same way the orchestrator does (formula.ProjectUniform with the calibration's own k, mirror per corner), and reports any point that projects under the troop bar where the tap would hit the HUD instead of deploying
  • the red zone / pinned deploy line detection works at this resolution
  • army-bar slots are detected and matched to the strategy's units (reports units the plan expects but the bar doesn't carry — the "unit not found in bar" problem)
  • troop-count OCR reads plausible numbers per slot (the count=0 problem)
  • every planned tap point lands inside the deployable area (above the troop bar, below the HUD top) — catches "spells placed in the corner"

It never taps. Live capture goes through internal/adb, same as the bot.

Usage:

go run ./cmd/attack_verify                        # live capture at 720p
go run ./cmd/attack_verify -img shot.png          # analyze a saved frame
go run ./cmd/attack_verify -edge BottomRight      # force a corner
go run ./cmd/attack_verify -save overlay.png      # write annotated PNG
go run ./cmd/attack_verify -strategy assets/strategies/auto_edrag_rush.yaml

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL