Function aoc::year2018::day15::attack

source ยท
fn attack(
    grid: &Grid<Option<usize>>,
    units: &[Unit],
    point: Point,
    kind: Kind,
) -> Option<usize>
Expand description

Search for weakest neighboring enemy. Equal health ties are broken in reading order.