X-Git-Url: https://git.cworth.org/git?p=lmno-server;a=blobdiff_plain;f=empathy.js;h=e80c1af34e0644b13ba898c38d6e0ec464a5542b;hp=759b486f8b58b1814299c1fe6863bb17109b2917;hb=f55c5650ffac1781c1cd675f64276c4e4c33d2b8;hpb=1c0d86cea49a79e94c884ffd4c811fe696db534b diff --git a/empathy.js b/empathy.js index 759b486..e80c1af 100644 --- a/empathy.js +++ b/empathy.js @@ -266,7 +266,8 @@ class Empathy extends Game { * multiple times). In contrast, iterating over"word_groups" will * have you visit each group only once. */ const word_groups = Object.entries(word_maps).filter( - entry => entry[0] === entry[1].words[0]).map(entry => entry[1]); + entry => entry[0] === this.canonize(entry[1].words[0])) + .map(entry => entry[1]); /* Now, go through each word group and assign the scores out to * the corresponding players.