Starting from:

$30

CSE Client and Server Online Game: Jumble Solution

In this assignment, you need to use socket programming to implement an online game Jumble.

If you are not familiar with the game. Read the following Wiki page.

https://en.wikipedia.org/wiki/Jumble

You can download a simple Python implementation of the game from our HuskyCT course page, and modify the code to write both client and server.

You can also download a text file which has a list of English words. This text file will be used by the server to pick words for a client to guess.

Moreover, you can also download both server code and client code and make changes for your purpose. These codes are from the book “Programming Python”. The server is implemented using thread to allow concurrency. Note you need to implement the server side of the Jumble game using thread to allow multiple users to play the game at the same time.

The following Python programming techniques are needed for the assignment.

    • Reading content of a text file to a list
    • Generating random numbers

    • TCP socket programming

Test your code and make sure the server can serve multiple players simultaneously. Note the words should be generated independently for each client, so that normally different clients are guessing different words.

The following pages are from the book “Programming Python”. They contains the detailed information about the server code.


More products