aboutsummaryrefslogtreecommitdiff
path: root/src/lib/rules/group.js
diff options
context:
space:
mode:
authorRuben Beltran del Rio <ruben@unlimited.pizza>2021-12-19 14:21:33 +0100
committerRuben Beltran del Rio <ruben@unlimited.pizza>2021-12-19 14:21:33 +0100
commit5d9f7190bd118fe4d44594d7a9584de98b527467 (patch)
treec323938b4626290a227a652380af769d7f4c4518 /src/lib/rules/group.js
parent29f687276d9e9ef01ce70ebd210a01386ca581ae (diff)
Port to svelte
Diffstat (limited to 'src/lib/rules/group.js')
-rw-r--r--src/lib/rules/group.js51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/lib/rules/group.js b/src/lib/rules/group.js
new file mode 100644
index 0000000..60cca55
--- /dev/null
+++ b/src/lib/rules/group.js
@@ -0,0 +1,51 @@
+const internals ={
+
+ groups: [
+ 'teenagers',
+ 'influencers',
+ 'vegans',
+ 'tik-tok users',
+ 'lactose intolerants',
+ 'households',
+ 'ice cream vendors',
+ 'babies',
+ 'police officers',
+ 'drug dealers',
+ 'tech workers',
+ 'cryptocurrency miners',
+ 'mexicans',
+ 'smokers',
+ 'drug users',
+ 'octogenarians',
+ 'public officials',
+ 'atheists',
+ 'god fearing parishioners',
+ 'b-list actors',
+ 'jugglers',
+ 'seagulls',
+ 'lighthouse operators',
+ 'tram drivers',
+ 'psychics',
+ 'magicians',
+ 'classically trained musicians',
+ 'food delivery drivers',
+ 'librarians',
+ 'doctors',
+ 'vaccinated cats',
+ 'balloon artists'
+ ],
+};
+
+export default function () {
+
+ const countA = Math.floor(Math.random() * 8) + 2;
+ const magnitude = Math.random() > 0.5 ? 99 : 5;
+ const countB = Math.floor(Math.random() * magnitude) + 1;
+ const groupA = internals.groups[Math.floor(Math.random() * internals.groups.length)];
+ const groupB = internals.groups[Math.floor(Math.random() * internals.groups.length)];
+
+ return {
+ emoji: '👨',
+ text: `No more than ${countA} ${groupA} + ${countB} ${groupB} are allowed to meet`
+ };
+}