Jim's
Tutorials

Spring 2018
course
site
>>> 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

attachments [paper clip]

  last modified size
TXT card.py Thu May 02 2024 05:45 am 2.1K
TXT client.py Thu May 02 2024 05:45 am 687B
TXT game.py Thu May 02 2024 05:45 am 3.7K
TXT hand.py Thu May 02 2024 05:45 am 980B
TXT server_thread.py Thu May 02 2024 05:45 am 727B