Haskell, Genetic Algorithm, Graph Theory, Programming.
locations). Here’s the code to build a graph from a list of tiles: topSide :: Tile -> [[Direction]] topSide (Tile top _) = top tileGraph :: [Tile] -> U.Graph (String, Int) tileGraph tiles = U.edges $ [ ((show a, trailNum a dira), (show b, trailNum b dirb)) | (a, dira, b, dirb) <- connections ] ++ [