add docs for propegate_from

This commit is contained in:
2025-01-28 11:57:16 -05:00
parent 4467b8cb30
commit 8099326d63

View File

@@ -72,7 +72,9 @@ impl Board {
*self.get_mut(i, j) = Some(piece);
}
// TODO! make this better and actually readable
/// Propegate piece captures originating from (i, j)
/// DO NOT USE THIS ALONE, this should be called as a part of
/// [`Board::place`] or [`Board::place_and_prop_unchecked`]
fn propegate_from(&mut self, i: usize, j: usize) {
// returns if that place is empty
let Some(starting_color) = *self.get(i, j) else {