Repository navigation
Conversation
…ild it frlg_league_parity runs N League chains of the planned policy and writes each turn and between-fight top-up: our lead, the foe out (HP bar fill, counted sleep), the field, the trainer, bag, streak and the choice, with the foe's exact HP, sleep counter and PP apart as hidden. The engine state gains the weather's and side conditions' turns left; run_chain takes a recording policy and a between-fight hook.
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 #111
The program's League policy is a port of planned.py, but nothing checked that it makes the same choice from the same state. frlg_league_parity runs N League chains of the planned policy and writes every turn and between-fight top-up as one JSON line, in the program's slugs and with only what the program can read or track (HP bar fill, the counted sleep, stages, weather and its turns, the foe's Reflect/Light Screen turns, the trainer's Full Restores). The foe's exact HP, sleep counter and PP go apart under
hidden. The engine state gains the weather's and side conditions' turns left, and run_chain takes a recording policy and a between-fight hook. Tested with new unit tests for the HP bar and sleep count, the league tests and the engine's node tests; the dump of 10 chains is the golden file of dayfine/Arduino-Source#613.