Deck - lcrocker/ojpoker GitHub Wiki

Deck

This is (currently) the sole class implementing DeckInterface, standardizing the behavior of deck-like objects. I expect more specialized kinds of decks will be added in the future.

The deck object represents the "live" deck from which cards are drawn during a game, and from which associated player hands are created. It keeps track of the hands that were created from it, so methods like d.dealAll(1) will deal every player of the game one card from the deck.

Source code

Dart  ยท  Rust

Questions, comments?