Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: Structure<TCell> GenerateMaze(Func<int, int, int>, MazeBias)

Declaration

public Structure<TCell> GenerateMaze(
    Func<int, int, int> rndNext,
    MazeBias bias = MazeBias.Default
)

Summary

Generates a maze on this structure.

Parameters

Func<int, int, int>rndNext A delegate that can provide random numbers.
MazeBiasbias Provides a means to influence the algorithm.

Exceptions

  • System.InvalidOperationException
    The current structure is disjointed (consists of more than one piece).