Table of Contents

Method ShuffleWord

Namespace
Gamelogic.Words
Assembly
Gamelogic.Words.dll

ShuffleWord(Word, int, IRandom)

Shuffle the letters of a word and ensure a minimum hamming distance

public static Word ShuffleWord(Word word, int minHammingDistance, IRandom random)

Parameters

word Word

The word to shuffle

minHammingDistance int

The minimum hamming distance to ensure

random IRandom

The random generator to use.

Returns

Word

A shuffled string

Exceptions

ArgumentNullException

word is null

ArgumentException

Minimum hamming distance is greater than the length of the word