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

Function patternAABB

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

Source from the content-addressed store, hash-verified

1import * as utils from './utils'
2
3export function patternAABB(digits: string[], rng: () => number): string {
4 const [A, B] = utils.pickTwoDifferentDigits(digits, rng)
5 return utils.fromDigits([A, A, B, B])
6}
7
8export function patternABBA(digits: string[], rng: () => number): string {
9 const [A, B] = utils.pickTwoDifferentDigits(digits, rng)

Callers

nothing calls this directly

Calls 2

fromDigitsMethod · 0.80

Tested by

no test coverage detected