X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=src%2Flink%2FC%2FREADME;h=ad894a71edbca7e334ca38e510b8e190cbd488c3;hb=0374e4a4aa10c3a86a6419b260fc0ea7e72c563a;hp=7f0a970f1efd9717742ebbae80ad30f6a12b739c;hpb=35ff18a5beda685e59ca898026570d67b7ead333;p=progcomp10.git diff --git a/src/link/C/README b/src/link/C/README index 7f0a970..ad894a7 100644 --- a/src/link/C/README +++ b/src/link/C/README @@ -1,5 +1,7 @@ Welcome to the C SDK and link library. +If you want to enter in C, you've come to the right place. + == Compiling and testing the sample bots == Run "make" in this directory. To include them in the @@ -7,18 +9,21 @@ Run "make" in this directory. To include them in the == Making your own agent == See wiki page. +Also, use the link/bundle-agent.sh shell script - it will take your agent file +and make a python module that you can include. + = Testing your own agent = Edit src/simulate.py. Your agents live in link.C.c_agents Add them to Agents to get them to do battle. For example, this code imports c_angel, c_lucifer, c_streetfighter and -c_frenchie, as well as the python sample agents, and then battles c_lucifer, -python Frenchie, c_streetfighter and c_angel. It goes at the top of simulate.py. +c_wash, as well as the python sample agents, and then battles c_lucifer, +python Wash, c_streetfighter and c_angel. It goes at the top of simulate.py. # Import and add your agents here: -from link.C.c_agents import c_angel, c_lucifer, c_streetfighter, c_frenchie +from link.C.c_agents import c_angel, c_lucifer, c_streetfighter, c_wash -from SampleAgents import Angel, Lucifer, Dummy, Frenchie, Streetfighter -Agents = [c_lucifer, Frenchie, c_streetfighter, c_angel] +from SampleAgents import Angel, Lucifer, Dummy, Wash, Streetfighter +Agents = [c_lucifer, Wash, c_streetfighter, c_angel]