Use priority queue for next move to make in mazes.
This is the proper data structure to use. No more of this regularly resorting a vector rubbish.
This commit is contained in:
@ -2,7 +2,7 @@ use std::ops::Add;
|
||||
|
||||
use crate::vec2d::Vec2d;
|
||||
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
|
||||
pub struct Point2d {
|
||||
pub x: i32,
|
||||
pub y: i32,
|
||||
|
Reference in New Issue
Block a user