Page 1 of 1

Using a class and socket server In this lab you will implement a server for a simple card game. The game is "High Card",

Posted: Sun May 15, 2022 8:29 am
by answerhappygod
Using a class and socket server
In this lab you will implement a server for a simple card game.
The game is "High Card", and the rules are simply as follows:
Your server should be implemented in a class definition, so that
the class can be imported by someone else, and they can create as
many "High Card" server objects as they want, using different
addresses and ports if necessary.
Requirements
Place your definition for a HighCardServer
class inside a lab07.py module. The class should
operate as follows:
Running / Testing
An example connection to such a server via Telnet looks like
this:
Other than this, you should consider the specs for the
HighCardServer class to be limited to simply
making sure that the following test_lab07.py
passes its tests!: