Method FillGridWithLetters
FillGridWithLetters<TPoint>(IGrid<TPoint, string>, Func<string>, bool)
Fills a grid with letters
public static void FillGridWithLetters<TPoint>(IGrid<TPoint, string> grid, Func<string> letterFunc, bool leaveExisting)
Parameters
grid
IGrid<TPoint, string>The grid to fill. Must be a grid of strings
letterFunc
Func<string>Letter generating function
leaveExisting
boolWhether existing letters in the grid should be replaced. If this is true, all non-null grid elements will be left intact
Type Parameters
TPoint
FillGridWithLetters<TPoint>(IGrid<TPoint, string>, IWordAlphabet, bool, IRandom)
Fills a grid with letters
public static void FillGridWithLetters<TPoint>(IGrid<TPoint, string> grid, IWordAlphabet alphabet, bool leaveExisting, IRandom random)
Parameters
grid
IGrid<TPoint, string>The grid to fill. Must be a grid of strings
alphabet
IWordAlphabetThe alphabet to use
leaveExisting
boolWhether existing letters in the grid should be replaced. If this is true, all non-null grid elements will be left intact
random
IRandomThe random generator to use.
Type Parameters
TPoint