return attack, bluff
def Defend (self, foe, bluff):
if Loss in LearningAgent.GetWinHistory (self, foe):
return attack, bluff
def Defend (self, foe, bluff):
if Loss in LearningAgent.GetWinHistory (self, foe):
elif bluff == Paper: attack = Rock # so we assume they're lying and
else: attack = Paper # hoping we go for a kill.
else:
elif bluff == Paper: attack = Rock # so we assume they're lying and
else: attack = Paper # hoping we go for a kill.
else: