Function advent_of_code_2022::day_2::parse_strategy
source · fn parse_strategy(
strategy: &String,
syntax: fn(_: &str) -> (Move, Move)
) -> Vec<(Move, Move)>
Expand description
Parse a strategy guide, taking the syntax that maps a line in the guide to a Round
played so this can be reused
in both parts.