X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=src%2FSampleAgents.py;h=8a3c43935fc61a7fdb6cdae3f9540765e1ab9b63;hb=9de8fe1e1b7f8148cbaf850c5fa8dd1082f2353a;hp=6da30bad46771565276ccb0986ac7e70684ce1fd;hpb=e9a8105a8f22404f4ac550d79954eaa6b7f5d8ff;p=progcomp10.git diff --git a/src/SampleAgents.py b/src/SampleAgents.py index 6da30ba..8a3c439 100644 --- a/src/SampleAgents.py +++ b/src/SampleAgents.py @@ -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):