From 096c5a1586137638164557da4d2f18679d7236a4 Mon Sep 17 00:00:00 2001 From: Daniel Axtens Date: Thu, 26 Aug 2010 21:55:36 +0800 Subject: [PATCH] Let's not swear in the final product. --- src/SampleAgents.py | 2 +- src/progcomp.xcodeproj/project.pbxproj | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/SampleAgents.py b/src/SampleAgents.py index 8a3c439..b7fd49d 100644 --- a/src/SampleAgents.py +++ b/src/SampleAgents.py @@ -70,7 +70,7 @@ class Wash (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: diff --git a/src/progcomp.xcodeproj/project.pbxproj b/src/progcomp.xcodeproj/project.pbxproj index 7d4f271..b85760a 100644 --- a/src/progcomp.xcodeproj/project.pbxproj +++ b/src/progcomp.xcodeproj/project.pbxproj @@ -11,7 +11,6 @@ 228D541311DB443B00258478 /* CSampleAgents.py */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.python; path = CSampleAgents.py; sourceTree = ""; }; 22CA010611D9BD51001ECDEF /* bundle-agent.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; name = "bundle-agent.sh"; path = "link/bundle-agent.sh"; sourceTree = ""; }; 22CA010711D9C52B001ECDEF /* cAgent.py */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.python; name = cAgent.py; path = link/cAgent.py; sourceTree = ""; }; - 22CAFEEA11D84076001ECDEF /* LICENSE */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; 22CAFEEB11D84076001ECDEF /* README */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = README; sourceTree = ""; }; 22CAFEEC11D84076001ECDEF /* rpsconst.py */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.python; path = rpsconst.py; sourceTree = ""; }; 22CAFEED11D84076001ECDEF /* SampleAgents.py */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.python; path = SampleAgents.py; sourceTree = ""; }; @@ -28,7 +27,6 @@ isa = PBXGroup; children = ( 22CAFF7711D840CB001ECDEF /* link */, - 22CAFEEA11D84076001ECDEF /* LICENSE */, 22CAFEEB11D84076001ECDEF /* README */, 22CAFEEC11D84076001ECDEF /* rpsconst.py */, 22CAFEED11D84076001ECDEF /* SampleAgents.py */, -- 2.20.1