summaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-10-27 22:56:51 +0100
committerTor Andersson <tor@ccxvii.net>2024-10-27 22:56:51 +0100
commit4e7da4450283cc46046fba1fcbf3d86c0456ce0f (patch)
tree9aae174463de8b7a64503b2da380c3aff196dd45 /server.js
parentb87d6f15e09ee9ecaf0cafc9c61c4c23b98a7128 (diff)
downloadserver-4e7da4450283cc46046fba1fcbf3d86c0456ce0f.tar.gz
Add social golfer designs for imperfect group sizes.
Diffstat (limited to 'server.js')
-rw-r--r--server.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/server.js b/server.js
index ec6e4ca..bf4f56b 100644
--- a/server.js
+++ b/server.js
@@ -3082,6 +3082,9 @@ function make_pools(seed, players) {
if (v % 39 === 0) return designs.pool_players(players, 39)
if (v % 45 === 0) return designs.pool_players(players, 45)
if (v % 51 === 0) return designs.pool_players(players, 51)
+ // social golfer semi-solutions
+ if (v % 6 === 0) return designs.pool_players(players, 6)
+ if (v % 12 === 0) return designs.pool_players(players, 12)
// misc bibd
if (v % 13 === 0 && n == 6)
return designs.pool_players(players, 13)
@@ -3096,6 +3099,8 @@ function make_pools(seed, players) {
if (v % 28 === 0) return designs.pool_players(players, 28)
if (v % 40 === 0) return designs.pool_players(players, 40)
if (v % 52 === 0) return designs.pool_players(players, 52)
+ // social golfer semi-solutions
+ if (v % 8 === 0) return designs.pool_players(players, 8)
// misc bibd
if (v % 9 === 0 && n == 8)
return designs.pool_players(players, 9)