]> git.cworth.org Git - lmno-server/commitdiff
Empathy: Use word groups to assign scores to players, not their lists
authorCarl Worth <cworth@cworth.org>
Thu, 11 Jun 2020 23:37:43 +0000 (16:37 -0700)
committerCarl Worth <cworth@cworth.org>
Thu, 11 Jun 2020 23:37:43 +0000 (16:37 -0700)
Previously, we were marching through each players list of words and
looking each word up in the word groups to find a score for that
word. This worked in general, but failed in a specific case:

If a player had two different words that were considered by the group
to be equivalent, that player received the score for that word
twice. To avoid giving a palyer in this situation points that the
group clearly didn't consider they deserved, we instead iterative over
the worud groups themselves to assign points out to players.

This means that when a player ends up having two (or more) words that
end up being equivalent, (based on the team consensus when judging),
all but one of those words will be worth nothing.


No differences found