Table of Contents

Method LargestOverlap

Namespace
Gamelogic.Words
Assembly
Gamelogic.Words.dll

LargestOverlap(Word, Word)

Find the largest overlap shared between two words. An overlap is a sufffix of the left word that is equal to a prefix of the right word. This operation is not symmetric. LargestOverlap([smokey], [keys]) is [key], but LargestOverlap([keys], [smokey]) is [s]

public static Word LargestOverlap(Word s1, Word s2)

Parameters

s1 Word

The left word, as a list of letters

s2 Word

The right word, as a list of letters

Returns

Word

The biggest overlap shared between the two words.