pick_board: part 1

Description Usage Arguments Examples

View source: R/day04.R

Description

part 1

Usage

1
pick_board(f, goal = c("win", "lose"))

Arguments

f

input file

goal

win or lose

Examples

1
2
3
f <- system.file("extdata", "day4.txt", package = "adventofcode21")
pick_board(f, goal = "win") # 63552
pick_board(f, goal = "lose") # 9020

mbjoseph/adventofcode21 documentation built on Jan. 2, 2022, 9:55 a.m.