Skip to content

Commit ff6748a

Browse files
authored
Update README.md
1 parent 77af911 commit ff6748a

File tree

1 file changed

+3
-35
lines changed

1 file changed

+3
-35
lines changed

README.md

Lines changed: 3 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -25,39 +25,7 @@ Build a poker game that demonstrates the value of Temporal and helps me get to k
2525

2626
### How to Play
2727
~~~
28-
> deck = StandardDeck()
29-
> rain = Player()
30-
> deck.shuffle()
31-
Deck Shuffled
32-
> rain.cards.append(deck.deal())
33-
> rain.cards.append(deck.deal())
34-
> rain.cards.append(deck.deal())
35-
> rain.cards.append(deck.deal())
36-
> rain.cards.append(deck.deal())
37-
> rain.cards
38-
[Card, Card, Card, Card, Card]
39-
> rain.cards[0].showing="True"
40-
> rain.cards
41-
[King of Hearts, Card, Card, Card, Card]
42-
> rain.cards[1].showing="True"
43-
> rain.cards[2].showing="True"
44-
> rain.cards[3].showing="True"
45-
> rain.cards[4].showing="True"
46-
> rain.cards
47-
[King of Hearts, Three of Diamonds, King of Clubs, Five of Hearts, Four of Hearts]
48-
> rain.cards[1] = deck.deal()
49-
> rain.cards[3] = deck.deal()
50-
> rain.cards[4] = deck.deal()
51-
> rain.cards[1].showing="True"
52-
> rain.cards[3].showing="True"
53-
> rain.cards[4].showing="True"
54-
> rain.cards
55-
[King of Hearts, Queen of Hearts, King of Clubs, Jack of Hearts, Ace of Hearts]
56-
> score = PokerScorer(rain.cards)
57-
> score.straight()
58-
False
59-
> score.flush()
60-
False
61-
> score.highCard()
62-
Ace of Hearts
28+
> Poker()
29+
Deck Shuffled
30+
[Q♠, Q♣, Q♡, 10♡, 8♡]
6331
~~~

0 commit comments

Comments
 (0)