Fixed count

This commit is contained in:
2026-02-09 21:37:26 +01:00
parent 54a2e9a800
commit b56f728e28
2 changed files with 3 additions and 3 deletions

View File

@@ -130,7 +130,7 @@
statusEl.innerHTML = `<span style="color:${state.winner === myRole ? 'green' : 'red'}">SPIEL ENDE: ${state.winner.toUpperCase()} GEWINNT!</span>`;
} else {
const turnText = state.turn === myRole ? "🟢 Dein Zug" : "⏳ Gegner zieht...";
statusEl.innerHTML = `${turnText}<br><small>Zug: ${state.moveCount} / 20</small>`;
statusEl.innerHTML = `${turnText}<br><small>Zug: ${state.moveCount} / 40</small>`;
}
// Draw Lines

View File

@@ -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 =>