Skip to content

FRLG League: parity dump of the planned policy's decisions - #112

Draft
dayfine wants to merge 1 commit into
sim/frlg-league-planfrom
sim/frlg-league-parity
Draft

dayfine wants to merge 1 commit into
sim/frlg-league-planfrom
sim/frlg-league-parity

Conversation

@dayfine

@dayfine dayfine commented Nov 17, 2026

Copy link
Copy Markdown
Owner

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.

…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant