222 day22 part2

✓ Passing This code compiles and runs correctly.

Code

input.k

Supporting Files

input.txt

Actual

1289

Expected output

1289

Flows

subflow ~gf click a branch to expand · @labels scroll to their anchor
if (sh >= 0)
subflow ~setf click a branch to expand · @labels scroll to their anchor
gf (s, sh, w)
subflow ~mkstate click a branch to expand · @labels scroll to their anchor
setf (s: 0, sh: 0, w: 10, val: php)
subflow ~costof click a branch to expand · @labels scroll to their anchor
if (code == 1)
subflow ~tkof click a branch to expand · @labels scroll to their anchor
if (code == 3)
subflow ~dmgof click a branch to expand · @labels scroll to their anchor
if (code == 1)
subflow ~healof click a branch to expand · @labels scroll to their anchor
if (code == 2)
subflow ~d47 click a branch to expand · @labels scroll to their anchor
if (key >= 0)
subflow ~m47 click a branch to expand · @labels scroll to their anchor
if (key >= 0)
subflow ~tick click a branch to expand · @labels scroll to their anchor
gf (s, sh: 38, w: 3)
subflow ~cast2 click a branch to expand · @labels scroll to their anchor
gf (s, sh: 10, w: 13)
subflow ~attack2 click a branch to expand · @labels scroll to their anchor
gf (s, sh: 41, w: 3)
subflow ~prep click a branch to expand · @labels scroll to their anchor
tick (s)
subflow ~casttry click a branch to expand · @labels scroll to their anchor
gf (s, sh: 10, w: 13)
subflow ~tryupdate click a branch to expand · @labels scroll to their anchor
get (m: dm, k: state)
subflow ~expandstate click a branch to expand · @labels scroll to their anchor
prep (s: state)
flow ~capture click a branch to expand · @labels scroll to their anchor
capture (source: bh: 0[i64], bd: 0[i64])

Test Configuration

MUST_RUN