Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/puzzle.py
diff options
context:
space:
mode:
Diffstat (limited to 'puzzle.py')
-rw-r--r--puzzle.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/puzzle.py b/puzzle.py
index 9834d2e..2022f10 100644
--- a/puzzle.py
+++ b/puzzle.py
@@ -28,7 +28,6 @@ class Puzzle:
self.clue=dic['clue']
else:
self.clue=''
- self.answered=False
except KeyError:
print 'Falta un atributo.'
except:
@@ -39,11 +38,13 @@ class Puzzle:
return self.question
def evaluateAnswer(self,answer):
- self.answered=True
- return self.answer==answer
+ return self.answer.lower()==answer.lower()
def hasClue(self):
self.clue!=''
def getClue(self):
return self.clue
+
+ def getScore(self):
+ return self.score