Skip to content

Commit 3bb5930

Browse files
author
Aner
committed
Update readme.md
1 parent 87b1b69 commit 3bb5930

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

readme.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,20 @@ $d = new Deck;
1919

2020
$d->shuffle();
2121

22-
//deal...
22+
//deal... an array of cards
2323
$hand1 = $d->drawHand(10);
2424
$hand2 = $d->drawHand(10);
2525

2626
//draw a single card
2727
$card = deck->draw();
2828

29+
//do something with card
30+
$value = $card->value();
31+
$suit = $card->suit();
32+
33+
//special card?
34+
if($card->isFaceCard()){...}
35+
2936
//cards left in the deck
3037
$deck->count();
3138

0 commit comments

Comments
 (0)