>>> 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
![[paper clip]](/cours/static/images/paper_clip_tilt.png) 
| last modified | size | ||
|  | card.py | Fri Oct 31 2025 07:10 pm | 2.1K | 
|  | client.py | Fri Oct 31 2025 07:10 pm | 687B | 
|  | game.py | Fri Oct 31 2025 07:10 pm | 3.7K | 
|  | hand.py | Fri Oct 31 2025 07:10 pm | 980B | 
|  | server_thread.py | Fri Oct 31 2025 07:10 pm | 727B |