Commit ae7f8586 authored by Mahmoud Aglan's avatar Mahmoud Aglan

fix: Ludo/Domino multiplayer skips time control (chess-only)

Only chess shows the time control picker (bullet/blitz/rapid).
Ludo and Domino go straight to matchmaking queue with 'standard' control.
Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 57d5b88d
......@@ -323,7 +323,12 @@ function showGameMenu(menu, game) {
menu.querySelector('#btn-multi').addEventListener('click', () => {
audio.play('click');
menu.classList.add('hidden');
scene.push('play-time-select', { game: game.key, mode: 'human' });
if (game.key === 'chess') {
scene.push('play-time-select', { game: game.key, mode: 'human' });
} else {
// Ludo/Domino don't have time controls — go straight to queue
scene.push('play-queue', { game: game.key, mode: 'human', timeControl: 'standard' });
}
});
menu.querySelector('#btn-leaderboard')?.addEventListener('click', () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment