Commits

Ed Brannin  committed 42f141d

moar

  • Participants
  • Parent commits f1b1660

Comments (0)

Files changed (2)

                 t= 1,
                 z= 22,
                 w=4,
+                y=4,
+                g=2,
                 p=3,
                 )
 
     total += letters[letter]
   return total * len(word)
 
-def guess_letters(word, score):
+def guess_letters(word, score, surrounding=0):
+  if len(word) >= 5:
+    print "Not even trying to guess long words like %s right now." % word
+    return
   total = score/len(word)
   unknown = ""
   print "%(points)d points in the letters of '%(word)s'." % dict(points=total, word=word)
   print "Remaining: %(total)d points for %(unknown)s." % dict(total=total, unknown=unknown)
 
 if __name__ == "__main__":
-  guess_letters("quod", 92)
-  guess_letters("queer", 245)
+  for word, value in dict(
+        quod=92,
+        defi=32,
+
+      ).items():
+    guess_letters(word, value)
+  if False: # Ignore the long words for now.
+    guess_letters("queer", 245)
+    guess_letters("sulker", 216, 13)
+    guess_letters("sulker", 234, 13)
+    guess_letters("greet", 180, 7)
+    guess_letters("greet", 170, 8)
+    guess_letters("greed", 160, 7)
+
+

File value_test.py

 sed=12,
 wap=24,
 wee=18,
+goy=21,
+toy=18
 )
 
 for word, value in known_values.items():