pub fn update_grid_state(
grid_state: &mut GridState,
selected_cell_reference: usize,
selection_coordinates: [i32; 2],
system_offset: [i32; 2],
visualization: &mut Option<VisualizationCapture>,
iteration: usize,
)Expand description
Mark the selected tile position as locked and update adjacency weights
Adjacency weights decrease with distance to guide future tile selection toward positions near already-placed tiles