Function advent_solutions::advent2017::day14::make_hashes
[−]
[src]
pub fn make_hashes(input: &str) -> Vec<Vec<u8>>
A total of 128 knot hashes are calculated, each corresponding to a
single row in the grid; each hash contains 128 bits which correspond to
individual grid squares. Each bit of a hash indicates whether that
square is free (0) or used (1).
The hash inputs are a key string (your puzzle input), a dash, and a
number from 0 to 127 corresponding to the row. For example, if your
key string were flqrgnkx, then the first row would be given by the
bits of the knot hash of flqrgnkx-0, the second row from the bits of
the knot hash of flqrgnkx-1, and so on until the last row,
flqrgnkx-127.