tunnel_between

tunnel_between(start: Tile, stop: Tile, rng: Random) Iterator[Tile]

Plots a tunnel between two rooms.

Parameters:
  • start – The starting tile

  • stop – The finish tile

  • rng – The random generator to use when deciding how to tunnel

Yields:

tile – tiles in the tunnel