fn seen(&mut self, x: usize, y: usize, d: usize) -> bool {
        let key_seen =
            (x * NUMBER_OF_ELEMS * (NUMBER_OF_STEPS + 1)) + y * (NUMBER_OF_STEPS + 1) + d;
        let seen = self.seen[key_seen];
        self.seen[key_seen] = true;
        seen
    }
/// Marks as seen and returns if it was previously seen
Marks as seen and returns if it was previously seen
Marks as seen and returns if it was previously seen
fn seen(&mut self, x: usize, y: usize, d: usize) -> bool {
        let key_seen =
            (x * NUMBER_OF_ELEMS * (NUMBER_OF_STEPS + 1)) + y * (NUMBER_OF_STEPS + 1) + d;
        let seen = self.seen[key_seen];
        self.seen[key_seen] = true;
        seen
    }
fn seen ( & mut self , x : usize , y : usize , d : usize ) -> bool { let key_seen = ( x * NUMBER_OF_ELEMS * ( NUMBER_OF_STEPS + 1 ) ) + y * ( NUMBER_OF_STEPS + 1 ) + d ; let seen = self . seen [ key_seen ] ; self . seen [ key_seen ] = true ; seen }
Marks as seen and returns if it was previously seen
Marks as seen and returns if it was previously seen
&mut self
x
usize
y
usize
d
usize