Project 7: Thread Based Soccer Server (worth 35 bonus points)
Assignment Day | November 30, 2009 (Monday - midnight) |
Due Date | December 08, 2009 (Tuesday 5 PM, but no penalty until the start of December 09). You will need to set up a demo time for the project see schedule page on available days). |
Collaboration Policy - Read Carefully
Collaboration Policy - Read CarefullyYou must work on this project individually, but you may discuss this assignment with other students in the class and ask and provide help in useful ways, preferable over our email list so we can all benefit from your great ideas. You may consult any outside resources you including books, papers, web sites and people (but no penguins or sea urchins).
If you use resources other than the class materials, indicate what you used along with your answer.
Objective
Your job is to create a thread based soccer simulator (using p-threads) where competitor can create their own soccer teams and use your simulator to compete. If you are curious what such a simulator would look like take look at ASCII soccer which is a simple simulator implemented in C. Your implementation should provide the same functionality as ASCII soccer, but each soccer player needs to be implemented as a separate p-thread.
This is an old project from a previous years - that some enjoyed working on - a bit of warning - your server may initially a bit slow, so you should try strategies to make it work as efficiently as possible.