X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=sidebyside;f=technicalities.txt;fp=technicalities.txt;h=116543257a37e6098e18b69e8a70b2e9426e6903;hb=edf8e5b569e75692d61a44f2c3241fb6410e4fbd;hp=1a0bf03c8728f3d38cc7ebe93c0810fd51dbf4ee;hpb=35ff18a5beda685e59ca898026570d67b7ead333;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