We have now set up an interface allowing you to play your agent against other submitted agents. Just follow these steps.
.profile
export PATH=$PATH:/home/cs3411/ac
. .profileIf you type
ls /home/cs3411/ac
you will see three executables:
aclist acplay acsubmitOnce you have compiled your agent, you can submit it using the command
acsubmit
. For example,
if your agent is called client.ac
,
you should type
acsubmit client.acThe system will respond with a message like this:
The name of your agent in Venom.(Note:
acsubmit
will also be
called automatically each time you submit your assignment
using the give
command.)
If you do not like the name assigned to you, you can request a new name by typing:
acsubmit --rename client.acIt may come back with
The name of your agent is Mirage.
aclist
will respond with a
list of all agents that have been submitted,
and remind you of the name assigned to your own agent. For example:
The current list of agents are: Mirage Silverbolt Terrorsaur The name of your agent is Mirage.
acplay
.
You must select a port number between 1025 and 65535.
For example, to play your agent against Mirage using port 31415,
you would type
acplay 31415 MirageIf you want to play more than one game, you can specify the number of games as an additional argument:
acplay 31415 Mirage 3You may occasionally experience delays due to system load. Note also that, when a game finishes, it may take up to 20 seconds for that port number to become free again. So you may like to choose two port numbers and alternate between them.