views:

277

answers:

1

Hello! I need some help about this little project. I'm begginer in java and it seems to me too hard to make it by myself. So please Help me. I will apperciate any help...

A waiter delivers a sequence of letters to various players who are connected. Each player proposes a server anagrams he discovered from the sequence of letters: the server checks the validity of anagrams, determines a score for each anagram found by the players and finally communicates the list of anagrams found with their scores. The server will host several parties play simultaneously, either party may accommodate one or more players. A player must not undergo a waiting period before the start part over a fixed period t. Moreover, each party can accommodate more than p players. To this end, each player that connects candidate is put in queue: all periods t (or more frequently if players are candidates p) if at least one player was connected,part begins with players waiting. In part, the server continues to host Players can begin and new parts simultaneously.

The client is used to connect to game server launched, it connects to the server using a pseudonym and a password passed as parameter. When the client receives signal a new game starts with the random letters, it displays it and waits on standard input communication of anagrams found by the player. The client receives Besides placing messages _a day scores of each player and displays it only after _a the entry of each anagram player (not to disturb the display). At the finn party, the client displays all anagrams of all players and their scores sent by the server UDP For the variant UDP client and server in the trade of UDP datagrams unicast to negotiate the connection. During the negotiation, the server communicates a socket multicast will be used for multi disseminate the draft letter, the latest scores and the overall list of anagrams found. The anagrams found by each player will be sent by the client multicast to all participants (including the server). The server acquiesces in a multicast communication receiving an anagram with the updated score of player. Because the management of simultaneous, a multicast socket will be opened for each party.

TCP In TCP mode, the server opens a socket to listen for new connections. Sharing data between the server and each client is insured by a bidirectional TCP flows.

A method of auto-negotiation should be implemented: when connecting a communication test be done on the multicast socket server. If successful, the method is UDP multicast used, if data exchange is realized by TCP unicast flows.

Thank you!

A: 

the server checks the validity of anagrams

This step may use the Jumble algorithm, a version of which is shown here.

trashgod