fix: skribbl pre-pick label + gartic min 3 players + tests

This commit is contained in:
PM
2026-05-01 20:27:41 +00:00
parent 2a40097fad
commit 5c55e33710
20 changed files with 943 additions and 3 deletions
+3
View File
@@ -344,6 +344,9 @@ function registerHandlers(io) {
if (room.players.filter((p) => p.connected).length < 2 && room.mode !== "color") {
return ack && ack({ ok: false, error: "need 2+ players" });
}
if (room.mode === "gartic" && room.players.filter((p) => p.connected).length < 3) {
return ack && ack({ ok: false, error: "Gartic Phone needs at least 3 players" });
}
room.phase = "playing";
if (room.mode === "skribbl") {
G.skribblInit(room);