diff --git a/frontend/js/game/lobby.js b/frontend/js/game/lobby.js index 4ec0a90..f9164b5 100644 --- a/frontend/js/game/lobby.js +++ b/frontend/js/game/lobby.js @@ -50,10 +50,17 @@ function renderLobbyView() { } function renderRoomView() { - const readyBtn = - currentRoom.mode === 'pvp' - ? '' - : '
coop ещё не реализован (этап 5)
'; + const full = currentRoom.players.length >= 2; + let statusLine = ''; + let readyBtn = ''; + if (currentRoom.mode !== 'pvp') { + statusLine = 'coop ещё не реализован (этап 5)
'; + } else if (!full) { + statusLine = 'жду второго игрока (1/2) — открой комнату во второй вкладке/другим человеком
'; + readyBtn = ''; + } else { + readyBtn = ''; + } container.innerHTML = `