How tagadanar/tagadalive works
TAGADALIVE is a LeekScript combat AI for LeekWars, with selectable search modes that evaluate battle states and actions. A companion Tampermonkey analyzer visualizes fight logs, algorithm statistics, charts, and profiling information. The README documents the AI’s high-level dispatch and modeling layers; sampled browser-script excerpts show log acquisition, caching, parsing, and rendering behavior. Some connections are omitted because the AI implementation and parts of the analyzer were not sampled.
Main entry points: Algorithms Search algorithms · lwa-core.user.js Analyzer state · lwa-main.user.js Analyzer orchestration · lwa-ui.user.js Analyzer panel
Components 16
Combat AI
- Mode entry
main - AI dispatcher
AI/AI - Search algorithms
AI/Algorithms
Battle Evaluation
- Battle state
Controlers/BattleState - Game and combo model
Model - Fight and map control
Controlers - Scoring knowledge
HiddenKnowledges/Scoring
Fight Analyzer
- Analyzer orchestration
tampermonkey/lwa-main.user.js - Fight log cache
tampermonkey/lwa-core.user.js - Log parser and stats
tampermonkey/lwa-parser.user.js - Analyzer state
tampermonkey/lwa-core.user.js
Analysis Views
- Analyzer panel
tampermonkey/lwa-ui.user.js - Charts and anomalies
tampermonkey/lwa-charts.user.js - Panel styling
tampermonkey/lwa-styles.user.js
Other components
- LeekWars player
- LeekWars fight page
Connections 15
- LeekWars player → Mode entry: selects mode
readme.md - Mode entry → AI dispatcher: dispatches to
readme.md - AI dispatcher → Search algorithms: chooses search
readme.md - Search algorithms → Battle state: uses battle state
readme.md - Search algorithms → Game and combo model: evaluates actions
readme.md - Search algorithms → Fight and map control: uses controllers
readme.md - Search algorithms → Scoring knowledge: scores choices
readme.md - LeekWars fight page → Analyzer orchestration: provides fight page
tampermonkey/lwa-main.user.js - Analyzer orchestration → Fight log cache: checks and loads
tampermonkey/lwa-main.user.js - Analyzer orchestration → Analyzer state: updates analyzer state
- Log parser and stats → Analyzer state: reads turn data
tampermonkey/lwa-parser.user.js - Analyzer panel → Analyzer state: reads settings and state
tampermonkey/lwa-ui.user.js - Charts and anomalies → Analyzer state: reads turn data
tampermonkey/lwa-charts.user.js - Analyzer panel → Charts and anomalies: renders charts
- Panel styling → Analyzer panel: styles panel