inst/run-day20.R

library(adventofcode17)
p_strings <- readLines("./inst/input20.txt")
slowest <- find_slowest_particle(p_strings)
stopifnot(slowest == aoc17_solutions$day20a)

particles <- create_particles(p_strings)
particles <- search_and_destroy_particles(particles)
stopifnot(length(particles) == aoc17_solutions$day20b)
tjmahr/adventofcode17 documentation built on May 30, 2019, 2:29 p.m.