MCPcopy Index your code
hub / github.com/TeaCoder52/patcode / patternABBA

Function patternABBA

src/patterns4.ts:8–11  ·  view source on GitHub ↗
(digits: string[], rng: () => number)

Source from the content-addressed store, hash-verified

6}
7
8export function patternABBA(digits: string[], rng: () => number): string {
9 const [A, B] = utils.pickTwoDifferentDigits(digits, rng)
10 return utils.fromDigits([A, B, B, A])
11}
12
13export function patternABAB(digits: string[], rng: () => number): string {
14 const [A, B] = utils.pickTwoDifferentDigits(digits, rng)

Callers

nothing calls this directly

Calls 2

fromDigitsMethod · 0.80

Tested by

no test coverage detected