inst/run-day15.R

library(adventofcode20)
x <- readLines("./inst/input15.txt")

p1 <- play_memory_game(x, 2020L)
stopifnot(p1$last_num == aoc20_solutions$day15a)

p2 <- play_memory_game(x, 30000000L)
stopifnot(p2$last_num == aoc20_solutions$day15b)
tjmahr/adventofcode20 documentation built on Dec. 31, 2020, 8:39 a.m.