Function
Static Public Summary | ||
public |
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:
Name | Type | Attribute | Description |
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:
Name | Type | Attribute | Description |
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:
Name | Type | Attribute | Description |
current | * | ||
prev | * |