9afcc16778ad09b0f1bdb896c0391580033beb4a
[progcomp10.git] / src / link / C / README
1 Welcome to the C SDK and link library.
2
3 If you want to enter in C, you've come to the right place.
4
5 == Compiling and testing the sample bots ==
6
7 Run "make" in this directory. To include them in the 
8
9 == Making your own agent ==
10 See wiki page.
11
12 Also, use the link/bundle-agent.sh shell script - it will take your agent file
13 and make a python module that you can include.
14
15 = Testing your own agent =
16 Edit src/simulate.py.
17 Your agents live in link.C.c_agents
18 Add them to Agents to get them to do battle.
19
20 For example, this code imports c_angel, c_lucifer, c_streetfighter and
21 c_frenchie, as well as the python sample agents, and then battles c_lucifer, 
22 python Frenchie, c_streetfighter and c_angel. It goes at the top of simulate.py.
23
24 # Import and add your agents here:
25 from link.C.c_agents import c_angel, c_lucifer, c_streetfighter, c_frenchie
26
27 from SampleAgents import Angel, Lucifer, Dummy, Frenchie, Streetfighter
28 Agents = [c_lucifer, Frenchie, c_streetfighter, c_angel]
29

UCC git Repository :: git.ucc.asn.au