card_deck

Crates.iocard_deck
lib.rscard_deck
version0.1.9
sourcesrc
created_at2018-07-25 16:02:31.536149
updated_at2019-08-19 14:51:03.712405
descriptionA Generic Deck of Cards, with a draw and discard pile
homepage
repositoryhttps://github.com/storyfeet/card_deck
max_upload_size
id75919
size17,987
(storyfeet)

documentation

README

Card Deck

The intent of this module is to provide methods for managing a deck and discard pile from a deck of generic cards.

The expectation is that cards will moved into and out of the deck, copy and clone are not used internally.

Changes

in v0.1.9

Fixed bug in card creation (All Spades) Enabled from_str and Display for PCard in playing cards Added tests for card creation

in v0.1.8

PartialEq on deck push_discards now takes an iterator

in v0.1.7

A playing cards module that works well with this deck.

in v0.1.5

Added "dig_for" and "dig_all" methods for grabbing the first/all cards that match a filter respectively.

Commit count: 23

cargo fmt