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

Function patternABABAB

src/patterns6.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 patternABABAB(digits: string[], rng: () => number): string {
4 const [A, B] = utils.pickTwoDifferentDigits(digits, rng)
5 return utils.fromDigits([A, B, A, B, A, B])
6}
7
8export function patternAABBCC(digits: string[], rng: () => number): string {
9 const [A, B, C] = utils.pickThreeDifferentDigits(digits, rng)

Callers

nothing calls this directly

Calls 2

fromDigitsMethod · 0.80

Tested by

no test coverage detected