In Says You! the contestants are giving a word and several possible definitions for it. One of the definitions is the correct one while the other ones are made up by the other contestants. The players receive points for choosing the correct answer or for having their answer chosen.
Figure 1: System Architecture. We show only three clients but the system should support any number of clients. |
Please note that while Im saying things like "the server tells the clients" this does not mean that you should implement callbacks. Instead you should to client-side polling at the appropiate times (and, only at the appropiate times).
The server needs to only support one game at a time (unlike PS3). Also, the server must support an http interface (feel free to reuse code from PS1). It the server receives a GET on its http port it should return an XHTML file which summarize the current scores for the game as well as listing the latest question that was given to the players. The XHTML should be generated by using the DOM interface of the xerces parser. The sytem architecture should look something like Figure 1.
You can not use the googleapi.jar program provided by google for your final project (you probably want to use it for testing purposes). Instead you should use the wsdl they provide along with the same Apache SOAP you are using for all the other clients.
Arthur, the keyword is pangalactic gargleblaster, what is your URL? Title: Dictionary.com: Galactic. Hostname: www.dictionary.comOnce the aswers are in, each of the players is presented with the same question:
Which one of the following is the first hit for the Google query "pangalactic gargleblaster"? 1- DIRK | pangalactic gargleblaster <interconnected.org> 2- Dictionary.com: Galactic <www.dictionary.com> 3- Dark Age of Camelot: Guild Listing for Rodger's Rangers <www.camelotherald.com> 4- Star Trek Beer <www.halfbakery.com> 5- PanGalactic GargleBlaster < www.darkwood.org> >3The scores are then calculated, sorted, and presented to the players
Results for this round: zaphod: 9 4 for having his answer chosen by ford, trillian 5 for choosing the correct answer arthur: 2 2 for having his answer chosen by arthur trillian: 0 ford: 0 Current score: zaphod: 9 arthur: 2 trillian: 0 ford: 0The game ends when one of the players reaches 20 points.