]> git.cworth.org Git - lmno.games/blobdiff - empathy/empathy.jsx
Change category voting to require fewer votes when there are more categories
[lmno.games] / empathy / empathy.jsx
index 6e98b327be7ceea20096c3a4e5eb56f3d95c3f0d..b9579a6893e2a9b91ea28f8da34da2182e4c75b9 100644 (file)
@@ -433,7 +433,7 @@ const PromptOptions = React.memo(props => {
 
 const LetsPlay = React.memo(props => {
 
-  const quorum = Math.round((props.num_players + 1) / 2);
+  const quorum = Math.max(0, props.num_players - props.prompts.length);
   const max_votes = props.prompts.reduce(
     (max_so_far, v) => Math.max(max_so_far, v.votes.length), 0);
 
@@ -1310,15 +1310,15 @@ class Game extends React.PureComponent {
       <CategoryRequest
         key="category-request"
       />,
-      <PromptOptions
-        key="prompts"
-        prompts={state.prompts}
-        player={state.player_info}
-      />,
       <LetsPlay
         key="lets-play"
         num_players={1+state.other_players.length}
         prompts={state.prompts}
+      />,
+      <PromptOptions
+        key="prompts"
+        prompts={state.prompts}
+        player={state.player_info}
       />
     ];
   }