Source

spelltower-scoring / value_test.py

Full commit
from value import score

known_values = dict(
are=9,
the=18,
zoo=72,
# heffalump=0,
# quod=92,
doe=12,
sed=12,
wap=24,
wee=18,
goy=21,
toy=18,
roar=16,
pet=15,
peh=24,
nix=78,
sax=78,
defi=32,
mite=24,
)

for word, value in known_values.items():
  assert score(word) == value