006 vigil

✓ Passing This code compiles and runs correctly.

Code

input.k

Supporting Files

lib/relic.kz

Actual

post 0 holds the watch
post 0 holds the watch
post 0 holds the watch
post 0 stands down at 28
post 8 stands down at 28
post 16 stands down at 28
post 24 stands down at 28
post 32 stands down at 28
post 40 stands down at 28
post 48 stands down at 28
post 56 stands down at 28
all asleep
all asleep
kept 5 rounds
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
relic of worth 10 released
relic of worth 17 released
relic of worth 16 released
relic of worth 15 released
relic of worth 14 released
relic of worth 13 released
relic of worth 12 released
relic of worth 11 released
watch dismissed, 56 posts cleared
vigil closed after 5 rounds: 0 tolled, 8 fell, 8 relics gone

Expected output

post 0 holds the watch
post 0 holds the watch
post 0 holds the watch
post 0 stands down at 28
post 8 stands down at 28
post 16 stands down at 28
post 24 stands down at 28
post 32 stands down at 28
post 40 stands down at 28
post 48 stands down at 28
post 56 stands down at 28
all asleep
all asleep
kept 5 rounds
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
fatigue 0
relic of worth 10 released
relic of worth 17 released
relic of worth 16 released
relic of worth 15 released
relic of worth 14 released
relic of worth 13 released
relic of worth 12 released
relic of worth 11 released
watch dismissed, 56 posts cleared
vigil closed after 5 rounds: 0 tolled, 8 fell, 8 relics gone

Flows

flow ~new click a branch to expand · @labels scroll to their anchor
new (board, source: toll: 0[i64], fell: 0[i64], gone: 0[i64], alarm: 0[i64])
flow ~new click a branch to expand · @labels scroll to their anchor
new (sentries, capacity: 64, source: awake: i64, fatigue: i64, post: i64)
flow ~new click a branch to expand · @labels scroll to their anchor
new (relics, capacity: 16, source: r: *app/lib/relic:Relic<held!>, worth: i64)
flow ~std/store click a branch to expand · @labels scroll to their anchor
std/store (sentries)
subflow ~muster click a branch to expand · @labels scroll to their anchor
for (0..@as(usize, 64))
subflow ~mint-relics click a branch to expand · @labels scroll to their anchor
for (0..@as(usize, 8))
subflow ~patrol click a branch to expand · @labels scroll to their anchor
query (sentries)
subflow ~collapse click a branch to expand · @labels scroll to their anchor
rule (sentries)
subflow ~commander click a branch to expand · @labels scroll to their anchor
query (sentries)
subflow ~rounds click a branch to expand · @labels scroll to their anchor
patrol
subflow ~stand-watch click a branch to expand · @labels scroll to their anchor
muster
subflow ~release-relics click a branch to expand · @labels scroll to their anchor
rule (relics)
subflow ~dawn-sentry click a branch to expand · @labels scroll to their anchor
insert (sentries, source: awake: 0, fatigue: 0, post: 99)
subflow ~dawn click a branch to expand · @labels scroll to their anchor
stored (source: board.alarm: 1)
flow ~dusk-vigil click a branch to expand · @labels scroll to their anchor
dusk-vigil (rounds: 5)

Test Configuration

MUST_RUN