From b56f728e2858ccc1ff811439e56b015bec5e0176 Mon Sep 17 00:00:00 2001 From: Simon Oberzier Date: Mon, 9 Feb 2026 21:37:26 +0100 Subject: [PATCH] Fixed count --- public/index.html | 2 +- server.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/index.html b/public/index.html index 450e744..ecffeeb 100644 --- a/public/index.html +++ b/public/index.html @@ -130,7 +130,7 @@ statusEl.innerHTML = `SPIEL ENDE: ${state.winner.toUpperCase()} GEWINNT!`; } else { const turnText = state.turn === myRole ? "🟢 Dein Zug" : "⏳ Gegner zieht..."; - statusEl.innerHTML = `${turnText}
Zug: ${state.moveCount} / 20`; + statusEl.innerHTML = `${turnText}
Zug: ${state.moveCount} / 40`; } // Draw Lines diff --git a/server.js b/server.js index 73a1ce8..13e34c8 100644 --- a/server.js +++ b/server.js @@ -36,8 +36,8 @@ function checkWinConditions(game) { // 1. Wolf reaches node 0 if (game.wolf === 0) return "wolf"; - // 2. Turn limit (20 moves) - if (game.moveCount >= 20) return "wolf"; + // 2. Turn limit (40 moves) + if (game.moveCount >= 40) return "wolf"; // Mobility Check helpers const canWolfMove = board_wolf[game.wolf].some(to =>