Repository navigation
Conversation
The sim's lead only knew Potions, Awakenings and Antidotes, and never set up, so it lost most E4 and Champion battles even with a full bag. Adds a per-trainer plan as data (BattleData/strategies.json: X Special, X Speed and X Accuracy goals from PokemonSimulation's measured Pokeguy setup goals) and planned_turn(): C2-style setup turns with an HP reserve and a heal before them, no setup into Self-Destruct, a one-hit KO or a likely status move, and Super Potion / Hyper Potion / Full Restore where a Potion would not pay. The win-chance sim plays it; the battle loop does not use the new items yet, so the story's chances are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013VUubhHeYSMGSSDXZkKZss
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Depends on #258. Base:
frlg/checkpoint-replay; the diff shows only this change.The battle sim's lead only knew Potions, Awakenings and Antidotes and never set up, so with Pokeguy's bags it lost almost every E4 and Champion fight.
BattleData/strategies.json: per-trainer setup goals (X Special stages, X Accuracy, outspeed) for the 12 setup fights, taken from PokemonSimulation's Pokeguy goals.planned_turn(): setup turns with an HP reserve and a heal before them; no setup into Self-Destruct/Explosion, a one-hit KO from full, or a foe that is more likely than not to use a status move; Super Potion, Hyper Potion and Full Restore where a Potion would not pay. Trainers with no entry get the general policy plus the bigger heals.Suppliesdoesn't count them), so the story's own win chances don't change.Win rates, Pokeguy's recorded lead and bag, 400 battles, seed 1, at full HP (before =
own_turn()with its items, heals = whole bag without goals, plan = with goals):Hideout Giovanni, Silph Giovanni, Blaine, Giovanni's gym and Lorelei are 97.8% to 100% with the plan at full HP. At Pokeguy's low entry HP the plan loses to heals-only at Koga (76.5% vs 87.2%) and Silph Giovanni (79.0% vs 88.2%). Without Blizzard (Dig in its slot) the plan drops to 38.5% for the Route 22 rival, 36.2% for Lance and 9.8% for the Champion.
Testing: the AutoStoryBattleStrategy, AutoStoryBattleSim and AutoStoryBattleData suites, and the other PokemonFRLG::AutoStory suites, pass in the headless runner (only the image tests that need CommandLineTests fail).
ninja SerialProgramsbuilds.🤖 Generated with Claude Code
https://claude.ai/code/session_013VUubhHeYSMGSSDXZkKZss