Skip to content

Buried Five

Contract buried_five. Extends Contract with:

MemberReturnsMeaning
.transmissionlist of stringsThe scrambled transmission: single-character tokens
.analyzerAnalyzerThe recovered device that collapses expanded groups
.layersnumberWhole-number count of five-fold wrapping layers applied

Read a list of exactly five string tokens and return the single token they were expanded from.

Returns: string · Raises: TypeError (non-list or non-string elements), ValueError (wrong length or unrecognized group)

Approach: the transmission was expanded layers times, each token becoming five. Collapse groups of five with analyzer.read(...) repeatedly, layer by layer, until one token per position remains, then transmit the recovered message.