Home Reference Source

Function

Static Public Summary
public

color(str: string): *

Wraps card representations in appropriate colors

public

nonSequential(deck: *): *

Returns the percentage of the cards in the pack that are in same suit sequential order

public

sequentialSequence(current: *, prev: *): boolean

Determines whether 'T' is after '9' or 'K' is after 'Q'

Static Public

public color(str: string): * source

import {color} from 'cards/src/log.js'

Wraps card representations in appropriate colors

Params:

NameTypeAttributeDescription
str string

Return:

*

public nonSequential(deck: *): * source

import {nonSequential} from 'cards/src/randomness.js'

Returns the percentage of the cards in the pack that are in same suit sequential order

Params:

NameTypeAttributeDescription
deck *

Return:

*

public sequentialSequence(current: *, prev: *): boolean source

import {sequentialSequence} from 'cards/src/randomness.js'

Determines whether 'T' is after '9' or 'K' is after 'Q'

Params:

NameTypeAttributeDescription
current *
prev *

Return:

boolean