From: Carl Worth Date: Thu, 11 Jun 2020 23:37:43 +0000 (-0700) Subject: Empathy: Use word groups to assign scores to players, not their lists X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=507128bb32b242b5a61a180fcb352486b5116280;hp=507128bb32b242b5a61a180fcb352486b5116280;p=empires-server Empathy: Use word groups to assign scores to players, not their lists 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. ---