2021 Day 21

Author

Nathan Moore

— Day 21: Dirac Dice —

There’s not much to do as you slowly descend to the bottom of the ocean. The submarine computer challenges you to a nice game of Dirac Dice.

Play a practice game using the deterministic 100-sided die. The moment either player wins, what do you get if you multiply the score of the losing player by the number of times the die was rolled during the game?

library(tidyverse)

my_file <- here::here("2021", "data-2021-21.txt")
x <- readLines(my_file)

Maybe write an explanation of the solution approach here

# here's another R cell for good luck

Paste part two here