This commit is contained in:
2025-01-28 15:48:44 -05:00
parent aab639c04d
commit 2189f00cb3
4 changed files with 39 additions and 19 deletions

View File

@@ -31,6 +31,9 @@ pub fn offsets(i: usize, j: usize, range: usize) -> Vec<(usize, usize)> {
}
for j_o in [-(range as i16), 0, range as i16] {
if (i_o, j_o) == (0, 0) {
continue;
}
let new_j = j as i16 + j_o;
if 0 > new_j {
continue;