This commit is contained in:
@@ -12,7 +12,7 @@ pub struct ProbabilisticSticking {
|
||||
}
|
||||
|
||||
impl<P: GriddedPosition, S: Storage<P>> Sticker<P, S> for SimpleSticking {
|
||||
fn should_stick<R: Rng>(&self, rng: &mut R, space: &S, position: &P) -> bool {
|
||||
fn should_stick<R: Rng>(&self, _rng: &mut R, space: &S, position: &P) -> bool {
|
||||
(0..P::NEIGHBOURS)
|
||||
.map(|n| position.neighbour(n))
|
||||
.any(|neighbour| space.is_occupied(&neighbour))
|
||||
|
||||
Reference in New Issue
Block a user