Function advent_of_code_2021::day_23::parse_letter[−][src]

fn parse_letter(letter: char) -> Option<u128>
Expand description

Turn a letter in the ascii-art into the number we use to represent it internally

  • 0 - Empty
  • 1 - Amber
  • 2 - Bronze
  • 3 - Copper
  • 4 - Desert