How I Built Three Small Party Games for a Spring Dinner
Описание и применение
Создано три простых Node.js‑приложения для вечеринок: многопользовательская игра «танцевальная память», однопользовательский «камень‑бумага‑ножницы» и лотерея без повторов. Они запускаются локально, используют браузер как клиент и легко масштабируются для любого события.
Задача
Create simple, event-friendly games that can be run on a laptop and projected to a large screen, using participants’ phones as controllers or as a single-screen display.
Результат
The three games run reliably on a local network, support multiple participants, and provide engaging visual feedback. They are easy to deploy, modify, and extend for future events.
Рабочий процесс
- 1. Clone the desired repository from GitHub.
- 2. Run
npm installto install dependencies. - 3. Start the server with
npm start(default ports 3000/3001). - 4. Open the host URL (
/host) on the projector screen and the player URL (/) on each participant’s phone. - 5. Use the host controls to start rounds, adjust difficulty, or reset the game.
- 6. For the rock‑paper‑scissors and lottery displays, press Space or click to start a round and watch the animated result.
- 7. Optionally build an Electron desktop version for a standalone Windows build.
Доказательства
Each repository has its own README and can be started independently with Node.js 18 or later.
The multiplayer game stores everything in one process. A server restart clears the room, and there is no authentication, HTTPS, rate limiting, or input validation.
The lottery display has a slightly different invariant: a number that has already been drawn must not be available again.
- Дата записи: 2026-09-19T01:31:18.993Z