poker elo calculation update

Will be more balanced for larger groups of players
This commit is contained in:
Milo
2025-07-07 14:25:23 +02:00
parent 0871cccee7
commit 71d22458e6
2 changed files with 38 additions and 30 deletions

View File

@@ -609,7 +609,7 @@ client.on('messageCreate', async (message) => {
}
}
else if (message.content.startsWith(prefix + ':poker')) {
io.emit('message', message.content);
console.log('poker')
}
else if (message.content.startsWith(prefix + ':elo-test')) {
const numbers = message.content.match(/\d+/g);
@@ -3599,8 +3599,8 @@ app.post('/poker-room/join', async (req, res) => {
let amount = getUser.get(userId)?.coins
let fakeMoney = false
if (!amount || amount < 100) {
amount = 100
if (!amount || amount < 1000) {
amount = 1000
fakeMoney = true
}
@@ -4432,6 +4432,7 @@ async function updatePokerPlayersSolve(roomId) {
import http from 'http';
import { Server } from 'socket.io';
import * as test from "node:test";
const server = http.createServer(app);
const io = new Server(server, {