nuffy/cards

Abstraction layer for playing cards

dev-master 2021-09-04 00:57 UTC

This package is auto-updated.

Last update: 2024-05-04 06:32:01 UTC


README

Dependency-free abstraction layer for handling playing cards and decks/shoes

Quick and dirty example:

use nuffy\cards\DeckFactory;
use nuffy\cards\Card\CardFactory;

$deck = DeckFactory::createNormalDeck();
$top_card = $deck->draw();
$king_of_spades = $deck->drawSpecific(CardFactory::createFromString('KS'));