Commits

Ed Brannin  committed e87e4fe

moar

  • Participants
  • Parent commits ccb1daf

Comments (0)

Files changed (1)

-letters = dict( a= 1,
+letters = dict( 
+    a= 1,
                 d= 2,
                 e= 1,
                 h= 4,
                 r= 1,
                 s= 1,
                 t= 1,
-                z= 22)
+                z= 22,
+                w=4,
+                p=3,
+                )
 
 def score(word):
   """
 def guess_letters(word, score):
   total = score/len(word)
   unknown = ""
-  print "%d points in letters." % total
+  print "%(points)d points in the letters of '%(word)s'." % dict(points=total, word=word)
   for letter in word:
     try:
       total -= letters[letter]
   print "Remaining: %(total)d points for %(unknown)s." % dict(total=total, unknown=unknown)
 
 guess_letters("quod", 92)
-guess_letters("doe", 12)
-guess_letters("sed", 12)
-guess_letters("wap", 24)
+guess_letters("queer", 245)