"""Execute an explicit static-map Larvitar solution using normal crystal buttons. Each approach is checked against the in-game coordinate display; stop on dialogue. """ from play import * from locate import locate mid=int(sys.argv[1]);first,last=map(int,sys.argv[2:4]);assert mid in (619,620,621) solution=json.loads((ROOT/f'work/277-rock{mid}-solution.json').read_text()) assert 0<=first.73 and len(v['text'])>18 for v in rows),'Unexpected dialogue' shutil.copy2(STATE,ROOT/f'work/277-crystal-{mid}-{n:02}.png') print('CRYSTAL ANIMATION SETTLED',n,flush=True) print('PLANNED CRYSTAL RANGE COMPLETE; verify visible Larvitar and end state',flush=True)