Repository navigation
Conversation
…on win by Full Restores, backward allocation
… a failed try, loss causes
…t rule and X item checks, Lapras kill order
…tion split, chain forward plan.json gets each fight's goal, item caps (Full Restore 1/2/0/2/3, X Special 6/2/3/2/2, X Speed 0/3/1/0/1, Super Potion 0/1/1/3/1) and reset rules; reserves are exactly the later fights' caps (test_plan_budget). Lorelei +6 on Dewgong and Lapras Strength -> Bite -> Bite with a heal block; Bruno early reset after Onix #1. frlg_league_final searches the Super Potion split and reruns the chain with item-aware accept rules. between() counts only spendable Super Potions when choosing them over a Full Restore.
…ming along the chain frlg_league_fr_timing runs four Lorelei variants (plan, no Lapras heal block, never heal, heal only on a sure KO), chains the plan and the variants forward, and logs every Full Restore and Super Potion of the accepted wins as a top-up before a fight or an in-fight use by foe and policy row. Lance's 80% top-up with a Super Potion re-split is one more chain. run_fight now keeps top-ups, item decisions with their policy row, and the KO line.
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 #113
The League chain only counted one unbroken run, but on console a loss doesn't save and we can save between rooms, so each fight can be retried until it wins cheaply.
frlg_league_retrygives each fight a Full Restore budget k, samples entry states from the previous fight's accepted wins, sweeps the Champion over 0-8 Full Restores, and searches the 8-Full-Restore split; a landed Roar/Whirlwind at Bruno or the Champion counts as a soft reset (a failed try).frlg_league_tuningadds optional per-foe plan keys (healblock, attacksequence,kill_order; format stays /1, documented in frlg-league-plan.md), searches heal thresholds for Machamp, Hitmonlee, Lapras and Dragonite, scores Bruno early-reset rules from Onix #1's opening, and compares Lapras kill orders. Results: about 8.5 expected tries for the whole League; Champion 61% per try with 4 Full Restores; Machamp heal below 80 HP with a Super Potion and Lapras below 60 HP lift the accept rates; reset at Bruno only when Speed is still lowered after all 3 X Speed; Strength first on Lapras. Tested with the new heal-block, sequence and budget unit tests plus the planned/pokeguy-chain suites; 500 runs per cell (Bruno 1000), tables in ~/BDSPLab/notes/e4-sim/retry/.The final plan is now all in plan.json: each fight's goal, item caps (the accept rule, top-ups included) and reset rules, with reserves exactly the later fights' caps so no fight can borrow from a later one (
test_plan_budgetchecks the caps add up to the bag).frlg_league_finalsearches the Super Potion split (0/1/1/3/1, Dragonite heal block kept) and reruns the chain forward with these accept rules, 2000 runs per fight: about 10.3 expected tries in all, Champion 33% per try with its 3 Full Restores; one Elixir covers the PP, so the Max Elixir is spare. Tables in ~/BDSPLab/notes/e4-sim/retry/final.txt.