X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=technicalities.txt;h=116543257a37e6098e18b69e8a70b2e9426e6903;hb=bd43c1b5dd58d6f1b76515a70893bfdc0bafe48c;hp=1a0bf03c8728f3d38cc7ebe93c0810fd51dbf4ee;hpb=3667187723faeadb1af1e52f412b31397afafc01;p=progcomp10.git diff --git a/technicalities.txt b/technicalities.txt index 1a0bf03..1165432 100644 --- a/technicalities.txt +++ b/technicalities.txt @@ -19,7 +19,7 @@ class : return "Rock" # Not a very good idea, but this is the format you need to use. def Attack (self, foeName): # Also note that the supervisor doesn't use named arguments. return "Rock", "Paper" # Real first, then promised. Won't they be surprised! - def Results (self, foeName, isInstigatedByYou, yourItem, theirItem, promisedItem): # The second argument is a boolean. + def Results (self, foeName, isInstigatedByYou, winner, yourItem, theirItem, promisedItem, pointChange): # The second argument is a boolean. pass # You probably want to store at least some of this information. Other Agents: @@ -44,10 +44,10 @@ Example: RESULTS foeName didYouInstigate yourItem theirItem promisedItem pointChange childSpawned +>RESULTS foeName isInstigatedByYou winner yourItem theirItem promisedItem pointChange RESULTS agent00001 False Rock Paper Scissors -2 False +>RESULTS agent00001 False Attacker Rock Paper Scissors -2