Add score for each word in the display of results for each round
authorCarl Worth <cworth@cworth.org>
Sun, 28 Jun 2020 00:39:52 +0000 (17:39 -0700)
committerCarl Worth <cworth@cworth.org>
Sun, 28 Jun 2020 00:39:52 +0000 (17:39 -0700)
This really helps in picking out whether two words were of equal value
or not.

empathy/empathy.jsx

index 044d4e07ad5e3e62885648410f0d6977d5b62525..407a4fe9cb5cf6f15bcce81e91e2f4c8a3cc9ab1 100644 (file)
@@ -1077,7 +1077,7 @@ class Game extends React.PureComponent {
             {state.scores.words.map(word => {
               return (
                 <li key={word.word}>
-                  {word.word}: {word.players.join(', ')}
+                  {word.word} ({word.players.length}): {word.players.join(', ')}
                 </li>
               );
             })}