Table of Contents

Method FillGridWithLetters

Namespace
Gamelogic.Words.Grids
Assembly
Gamelogic.Words.dll

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 bool

Whether 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 IWordAlphabet

The alphabet to use

leaveExisting bool

Whether existing letters in the grid should be replaced. If this is true, all non-null grid elements will be left intact

random IRandom

The random generator to use.

Type Parameters

TPoint