Kam nje detyre laboratori per te bere, po ju dergoj kerkesen sic e ka pershkruar profesori per efekt ekzaktesie ne radhe te pare, por dhe ngaqe nuk i di termat me saktesi ne shqip...
Do te me behej qejfi nese do me ndihmonte dikush pjeserisht ose me zgjidhje te plote, ose te me ndihmonte duke me sjelle kodet e ndonje programi te ngjashem me kete...
Afati i fundit qe do me sherbente zgjidhja juaj : 10 prill (te dielen)
PROBLEM DESCRIPTION
You are asked to write a C program for Java applets to play a simple card game as will be explained below. The game software that you are asked to implement includes two components: the server, that is implemented with C under the Linux/Unix environment; the client which is implemented using Java. Because then interaction with the players will be taken into account this component should also include a well-designed GUI.
The server should follow the above rules:
a. The server will manage several distinct games at the same time.
b. Each game should have a unique name.
c. To connect a game, a unique nickname is required for each player.
d. 2,3 or 4 players can take part in the game
e. A user can either start or join a new game. If he starts a new game, he will be the moderator of this game.
f. The moderator can start the game, if there are at least two participants.
g. Cards will be given randomly by the server.
h. The game is over when a player gathers 151 points.
i. Points are calculated as follows:
a. Jack : 1 point (fanti- 1 pike)
b. Ace : 1 point (asi - 1 pike)
c. 10 of diamonds: 3 points (10 karo - 3 pike)
d. 2 of clubs 2 points ( 2 spathi - 2 pike)
e. Xing 10 point
f. Xing me fant 20 pike
j. The server will take the port number and the debugging options as arguments.
k. Server will run in the background and write the debug/warning messages to syslog.
The client is responsible to interact with the game server on behalf of the player. The client should get from the user its nickname, the port and the name of the game server.If the nickname is in use, it should ask for another one.
Ju falenderoj...
Krijoni Kontakt