no more elo update when room is on fake money mode

This commit is contained in:
Milo
2025-07-07 13:24:46 +02:00
parent 48a5977262
commit 0871cccee7
2 changed files with 1 additions and 19 deletions

19
game.js
View File

@@ -220,25 +220,8 @@ export async function eloHandler(p1, p2, p1score, p2score, type) {
})
}
export function pokerTest() {
console.log('pokerTest')
let hand1 = Hand.solve(['Ad', 'As', 'Jc', 'Th', '2d', '3c', 'Kd'], 'standard', false);
//let hand2 = Hand.solve(['Ad', 'As', 'Jc', 'Th', '2d', '3c', 'Kd'], 'standard', false);
let hand2 = Hand.solve(['Ad', 'As', 'Jc', 'Th', '2d', 'Qs', 'Qd'], 'standard', false);
/*console.log(hand1.name)
console.log(hand2.name)
console.log(hand1.descr)
console.log(hand2.descr)*/
console.log(hand1.toString())
console.log(hand2.toString())
let winner = Hand.winners([hand1, hand2]); // hand2
console.log(winner)
console.log(winner.includes(hand1));
console.log(winner.includes(hand2));
}
export async function pokerEloHandler(room) {
if (room.fakeMoney) return
let DBplayers = []
Object.keys(room.players).forEach(playerId => {
const DBuser = getUser.get(playerId)

View File

@@ -25,7 +25,6 @@ import {
channelPointsHandler,
eloHandler,
pokerEloHandler,
pokerTest,
randomSkinPrice,
slowmodesHandler
} from './game.js';