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
gridIGrid<TPoint, string>The grid to fill. Must be a grid of strings
letterFuncFunc<string>Letter generating function
leaveExistingboolWhether 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
gridIGrid<TPoint, string>The grid to fill. Must be a grid of strings
alphabetIWordAlphabetThe alphabet to use
leaveExistingboolWhether existing letters in the grid should be replaced. If this is true, all non-null grid elements will be left intact
randomIRandomThe random generator to use.
Type Parameters
TPoint