Home Reference Source

References

Class Summary

Static Public Class Summary
public

For shuffling and dealing

public

Common functionality for text based card game

public
public

Log

Allows 'slow' writing of strings to the repl to provide a slower pace to the game

public

Performs async tasks one after another

Function Summary

Static Public Function 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'

Variable Summary

Static Public Variable Summary
public
public

Unicode: *

public

randomInt: *: *

public

randomItem: *: *

public

rank(rank: string): string

public

suits(suits: string): string