From 11b1bab7b7ab4bc2c1e1f556a526baf1f01e2041 Mon Sep 17 00:00:00 2001
From: Carl Worth <cworth@cworth.org>
Date: Mon, 29 Jun 2020 14:54:31 -0700
Subject: [PATCH] Change category voting to require fewer votes when there are
 more categories

Now, at the beginning, it's no longer enough for there to be a
majority of votes on a single prompt. Instead, the number of votes
required is the number of players minus the number of available
prompts.
---
 empathy/empathy.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/empathy/empathy.jsx b/empathy/empathy.jsx
index a9911d7..b9579a6 100644
--- a/empathy/empathy.jsx
+++ b/empathy/empathy.jsx
@@ -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);
 
-- 
2.45.2