From 09a8e791c59b3a03bb30d71080e4c915cc8a928e Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Mon, 24 Jan 2022 19:22:55 -0500 Subject: Revert "map scoring: weight length of word" This reverts commit b2eed7eee4f4730b458bfd3bac285363dd15b938. --- mapScore.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'mapScore.py') diff --git a/mapScore.py b/mapScore.py index 154142f..61a5259 100755 --- a/mapScore.py +++ b/mapScore.py @@ -21,10 +21,9 @@ def scoreWord(word,mm): pc=word[0] or ' ' s=0 for c in word: - #manhattan dist * 10 - s+=abs(mm[ord(pc)][0]-mm[ord(c)][0])*10 - s+=abs(mm[ord(pc)][1]-mm[ord(c)][1])*10 - s+=1 # longer word bias + #manhattan dist + s+=abs(mm[ord(pc)][0]-mm[ord(c)][0]) + s+=abs(mm[ord(pc)][1]-mm[ord(c)][1]) pc=c return s -- cgit 1.4.1