condor-pathfinding-grid 0.4.0

Grid pathfinding, preprocessing, replanning, and multi-agent algorithms for Condor.
Documentation
//! Fixture-free direct grid-owner smoke and weighted-cost contract checks.

use condor_grid::{AStar, Grid, Pathfinder, Point, SearchRequest};

#[path = "grid_core/weighted_costs.rs"]
mod weighted_costs;

#[test]
fn astar_returns_a_direct_grid_result() {
    let grid = Grid::new(3, 3).expect("small grid is valid");
    let result = AStar
        .search(
            &grid,
            SearchRequest::new(Point::new(0, 0), Point::new(2, 2)),
        )
        .expect("open endpoints are valid");

    assert!(result.is_found());
    assert_eq!(result.path().map(|path| path.cost()), Some(4));
}