>>> python server_thread.py
>>> python client.py
hello, let's play a game of blackjack, you were dealt the Ace of Clubs, and King of Clubs, your score is 21
would you like to hit or stand? (h or s)
s
player score 21, computer score 19, player wins
>>> python client.py
hello, let's play a game of blackjack, you were dealt the 6 of Clubs, and Jack of Clubs, your score is 16
would you like to hit or stand? (h or s)
h
you were dealt the 10 of Clubs, your score is 26, would you like to hit or stand?
s
player busted, computer wins
>>> python client.py
hello, let's play a game of blackjack, you were dealt the 6 of Spades, and 8 of Hearts, your score is 14
would you like to hit or stand? (h or s)
h
you were dealt the 3 of Clubs, your score is 17, would you like to hit or stand?
s
computer busted, player wins
>>> python client.py
hello, let's play a game of blackjack, you were dealt the 7 of Clubs, and 7 of Hearts, your score is 14
would you like to hit or stand? (h or s)
t
please print a valid input, (h or s)
j
please print a valid input, (h or s)
s
player score 14, computer score 20, computer wins
Analyze packet information Build a slightly better interface - possibly a key/value encoding for interraction rather than just "h" or "s" Add in a bit more game functionality - multiple players or persistent betting with splits and other blackjack things
last modified | size | ||
card.py | Sun Dec 22 2024 05:04 am | 2.1K | |
client.py | Sun Dec 22 2024 05:04 am | 687B | |
game.py | Sun Dec 22 2024 05:04 am | 3.7K | |
hand.py | Sun Dec 22 2024 05:04 am | 980B | |
server_thread.py | Sun Dec 22 2024 05:04 am | 727B |