Spaces:
Sleeping
Sleeping
Update app.js
Browse files
app.js
CHANGED
|
@@ -56,7 +56,9 @@ const BOT_NAMES = ['Alpha', 'Beta', 'Gamma', 'Delta', 'Omega', 'Zeta', 'Sigma',
|
|
| 56 |
|
| 57 |
function populateBots(room, guaranteeBot = false) {
|
| 58 |
if (!guaranteeBot && Math.random() > 0.5) return;
|
| 59 |
-
const numBots = Math.floor(Math.random() * 2) + 1;
|
|
|
|
|
|
|
| 60 |
for (let i = 0; i < numBots; i++) {
|
| 61 |
const botId = `bot-${uuidv4()}`;
|
| 62 |
const template = BOT_TEMPLATES[Math.floor(Math.random() * BOT_TEMPLATES.length)];
|
|
|
|
| 56 |
|
| 57 |
function populateBots(room, guaranteeBot = false) {
|
| 58 |
if (!guaranteeBot && Math.random() > 0.5) return;
|
| 59 |
+
// const numBots = Math.floor(Math.random() * 2) + 1;
|
| 60 |
+
const numBots = Math.floor(Math.random() * 6) + 8;
|
| 61 |
+
|
| 62 |
for (let i = 0; i < numBots; i++) {
|
| 63 |
const botId = `bot-${uuidv4()}`;
|
| 64 |
const template = BOT_TEMPLATES[Math.floor(Math.random() * BOT_TEMPLATES.length)];
|