Let's not swear in the final product.
[progcomp10.git] / src / SampleAgents.py
index 6da30ba..b7fd49d 100644 (file)
@@ -56,8 +56,9 @@ class Streetfighter (BaseAgent):
 
 # This is our first bot with any sort of learning capability, based on the LearningAgent base.
 # Experienced programmers might opt to write their own learning code based on BaseAgent, but it's up to you.
-# Frenchie is a simple bot that is by default nice but will permanently turn against any agent that betrays it.
-class Frenchie (LearningAgent):
+# Wash is a simple bot that is by default nice but will permanently turn against any agent that betrays it.
+# "Curse your suddent but inevitable betrayal" - Wash (Firefly)
+class Wash (LearningAgent):
        def Attack (self, foe):
                attack = RandomAttack ()
                if Loss in LearningAgent.GetWinHistory (self, foe):
@@ -69,7 +70,7 @@ class Frenchie (LearningAgent):
                return attack, bluff
        def Defend (self, foe, bluff):
                if Loss in LearningAgent.GetWinHistory (self, foe):
-                       if bluff == Rock: attack = Scissors     # They've fucked us in the past,
+                       if bluff == Rock: attack = Scissors     # They've screwed us in the past,
                        elif bluff == Paper: attack = Rock      # so we assume they're lying and
                        else: attack = Paper                    # hoping we go for a kill.
                else:

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