aboutsummaryrefslogtreecommitdiff
path: root/metasol.hpp
diff options
context:
space:
mode:
authorTom Harley2019-04-10 14:20:39 +0100
committerTom Harley2019-04-10 14:20:39 +0100
commit7bb83894eb74e66a79d5184333d5ff8db6ece091 (patch)
tree2d015178cd273b77db9c6c9ca0128de0c0c1c5ff /metasol.hpp
parentEnable reading deal seeds from a file (diff)
downloadmetasol-7bb83894eb74e66a79d5184333d5ff8db6ece091.tar.gz
metasol-7bb83894eb74e66a79d5184333d5ff8db6ece091.zip

Add voters to vote when vote is split

Diffstat (limited to 'metasol.hpp')
-rw-r--r--metasol.hpp29
1 files changed, 27 insertions, 2 deletions
diff --git a/metasol.hpp b/metasol.hpp
index 573e741..c2b31ce 100644
--- a/metasol.hpp
+++ b/metasol.hpp
@@ -759,9 +759,34 @@ typedef struct {
unsigned max_concurrent_games;
/**
- * How many votes are used to determine the next move.
+ * How many voters are initially used to determine the next move.
*/
- unsigned vote_count;
+ unsigned initial_vote_count;
+
+ /**
+ * The number of voters to add to the voting pool each time voters are
+ * added.
+ */
+ unsigned vote_increase_step;
+
+ /**
+ * The magnitude with which to increase the number of voters being used each
+ * time voters are added.
+ *
+ * Applied after @ref vote_increase_step.
+ */
+ unsigned vote_increase_magnitude;
+
+ /**
+ * The maximum number of voters to use when determining the next move.
+ */
+ unsigned max_vote_count;
+
+ /**
+ * The ratio of votes required for a satisfying vote. This is honoured
+ * unless the max voter count has already been reached.
+ */
+ unsigned agree_ratio;
/**
* The seed used when shuffling face-down cards around.