Update relative coords of pieces so that algorithm works with one field #1
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The offset of some pieces are so, that iterating over the fields in order does not work.
We use this line to work around that:
for empty_coord in &field.empty_coords.as_slice()[0..2] {
Note that it takes two coords. This should not be necessary if the offsets are correct.