X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=technicalities.txt;h=116543257a37e6098e18b69e8a70b2e9426e6903;hb=29e6bf38a90a6754a4d77d7c3843d9364e3afb4d;hp=2f75cd8a7fb7691efca6f5ba51691530b0192305;hpb=fbee9b555f7e2febaf604ceaeb24b40286eb85a2;p=progcomp10.git diff --git a/technicalities.txt b/technicalities.txt index 2f75cd8..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,12 @@ 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 +BYE +{program exits without responding} \ No newline at end of file