Table of Contents

Method HammingDistance

Namespace
Gamelogic.Words
Assembly
Gamelogic.Words.dll

HammingDistance(Word, Word)

Calculates the hamming distance between two pre-split words using a given alphabet.

public static int HammingDistance(Word word1, Word word2)

Parameters

word1 Word

The first collection of letters

word2 Word

The second collection of letters

Returns

int

Exceptions

ArgumentNullException

word1 or word2 is null

InvalidOperationException

word1 and word2 are not the same length