CMPS-4350 Advanced Software Engineering
Lab-2
Overview:
Copy the files to your /4350/2 folder. Get the lab files from Odin at: /home/fac/gordon/p/4350/code/lab2/*
You will start by building and running your programs.
Start the lab2server program running.
Open another terminal window and start the lab2client.
The client program requires some arguments, example:
<host name> <port> <player name>
./lab2client localhost 4490 myPlayerName
You may start more than one client.
It might look something like this...
The server is to the right with 3 clients to the left.
You may try to make some functionality changes shown below, but it will not be graded at this point. Below is optional! Establish a game scenario. 1. Allow a client to attack another client. The client will press a key A through Z. This is the client they wish to follow and attack. 2. Send a message to the server indicating whom you are attacking. Then, move toward that client with the arrow keys. When you occupy the same grid node, you have caught them. The server will award you some points, and remove your attack mode. 3. The client doing the attacking should have a message in the window to confirm who they are attacking. 4. The server should display the score totals of players. Rules: 1. A player you have chosen to attack cannot attack you. Whomever attacks first locks the other player out. But, that player can attack someone else. 2. A player can attack only one player at a time.