CS378: Autonomous Multiagent Systems -- Fall 2002: Programming Assignment 2
This assignments assumes the knowledge gained from assignment 1.
For the first assignment, you used the "rcssclient" to allow you to
communicate with the simulator by hand. You will now alter a similar
client to perform some tasks automatically. In this assignment, you
will implement some simple, reactive soccer-playing agents.
This assignment (and all for this course) is about creating agents.
It's not about programming. If you have programming
questions/problems, etc. (e.g. "How do I generate a random number in
C?) ask the class list early and often.
Score a goal
The code you will be modifying is in /projects/cs378.pstone/sampleclient.
Instructions:
Copy over the files in the sampleclient directory.
Compile by typing "make".
Run by typing "./client" (after starting the server)
You will see the same behavior as last week: agent sensations will be
sent to standard input and you can type player commands into the
shell.
Looking into the code (client.c), you will see that it uses select()
to read from multiple input streams: one for receiving input from the
server, and one for receiving input from the shell.
Your task is to alter the code so that the player does the following
without any input from the shell:
Hints:
What to turn in:
Run the same code, but this time start 2 players: 1 on each team.
Turn in a logfile that runs at least until one player scores or 1000
cycles (whichever comes first). If the players get stuck, you can
create drop-balls.
What to turn in:
A logfile called [yourlogin]-1on1.log
Create 2 players on the same team that pass the ball back
and forth.
Hints:
What to turn in:
[Back to Department Homepage]
Page maintained by
Peter Stone
Questions? Send me
mail