pathfinding-0.1.0.0: pathfinding in grid and graphs

Safe HaskellSafe-Inferred
LanguageHaskell2010

PathFinding.Grid

Documentation

data Grid cell Source

Constructors

Grid 

Fields

_carte :: [[cell]]
 
_neighbor :: [[cell]] -> (Int, Int) -> [(Int, Int)]
 

Instances

PathFinding (Grid cell) 
type Queue (Grid cell) = [Pos (Grid cell)] 
type Pos (Grid cell) = (Int, Int) 
type Neighbor (Grid cell) = Pos (Grid cell) 

gridNeighbors4 :: (a -> Bool) -> [[a]] -> (Width, Height) -> [(Width, Height)] Source

gridNeighbors8 :: (a -> Bool) -> [[a]] -> (Width, Height) -> [(Width, Height)] Source

gridNeighbors :: ((t, t1) -> [(Width, Height)]) -> (a -> Bool) -> [[a]] -> (t, t1) -> [(Width, Height)] Source

labSize :: [[cell]] -> (Width, Height) Source