From: Carl Worth Date: Mon, 29 Jun 2020 21:28:35 +0000 (-0700) Subject: Display kudos (as stars) in the per-round scores X-Git-Url: https://git.cworth.org/git?p=lmno.games;a=commitdiff_plain;h=5fb4dec0d3dc03696ec2d00788d2d657a23b8bd1;ds=sidebyside Display kudos (as stars) in the per-round scores Now that the server gives us this information, let's display it, (otherwise, the players could be very confused about why some ties were apparently broken in the sorting). --- diff --git a/empathy/empathy.jsx b/empathy/empathy.jsx index 570e585..6e98b32 100644 --- a/empathy/empathy.jsx +++ b/empathy/empathy.jsx @@ -1227,7 +1227,9 @@ class Game extends React.PureComponent { } return (
  • - {score.players.join("/")}: {score.score} {perfect} {quirkster} + {score.players.join("/")}: {score.score} + {score.kudos ? `, ${'★'.repeat(score.kudos)}` : ""} + {perfect} {quirkster}
  • ); })} @@ -1237,7 +1239,9 @@ class Game extends React.PureComponent { {state.scores.words.map(word => { return (
  • - {word.word} ({word.players.length}): {word.players.join(', ')} + {word.word} ({word.players.length} + {word.kudos.length ? `, ${'★'.repeat(word.kudos.length)}` : ""} + ): {word.players.join(', ')}
  • ); })}