Safe Haskell | None |
---|

Operations on the `Area`

type that involve random numbers.

# Picking points inside areas

Create a random room according to given parameters.

Create a void room, i.e., a single point area.

# Choosing connections

connectGrid :: (X, Y) -> Rnd [(PointXY, PointXY)]Source

Pick a subset of connections between adjacent areas within a grid until there is only one connected component in the graph of all areas.

randomConnection :: (X, Y) -> Rnd (PointXY, PointXY)Source

Pick a single random connection between adjacent areas within a grid.