X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=src%2Flink%2FC%2FREADME;fp=src%2Flink%2FC%2FREADME;h=7f0a970f1efd9717742ebbae80ad30f6a12b739c;hb=35ff18a5beda685e59ca898026570d67b7ead333;hp=0000000000000000000000000000000000000000;hpb=e4184557ebc33201e217e167d577128f710e4890;p=progcomp10.git diff --git a/src/link/C/README b/src/link/C/README new file mode 100644 index 0000000..7f0a970 --- /dev/null +++ b/src/link/C/README @@ -0,0 +1,24 @@ +Welcome to the C SDK and link library. + +== Compiling and testing the sample bots == + +Run "make" in this directory. To include them in the + +== Making your own agent == +See wiki page. + += 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. + +# Import and add your agents here: +from link.C.c_agents import c_angel, c_lucifer, c_streetfighter, c_frenchie + +from SampleAgents import Angel, Lucifer, Dummy, Frenchie, Streetfighter +Agents = [c_lucifer, Frenchie, c_streetfighter, c_angel] +