Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

How I Built Three Small Party Games for a Spring Dinner

Description and use

The author built three lightweight Node.js party games—a multiplayer memory game, a single‑screen rock‑paper‑scissors display, and a lottery machine—each designed for local deployment without a database, emphasizing authoritative server logic, pre‑determined animation outcomes, and efficient no‑repeat number drawing.

Problem

Create lightweight, event‑friendly games that can run on a laptop and projector without complex infrastructure.

Outcome

Three small, self‑contained games that can be deployed on a laptop and projector, demonstrating simple server‑authoritative logic, pre‑determined animation outcomes, and efficient no‑repeat number drawing.

Workflow

  • 1. Implement each game as a small Node.js app with Express and plain HTML/CSS/JS.
  • 2. For the multiplayer game, use Socket.IO to share a single in‑memory game state and enforce authoritative checks.
  • 3. For the RPS display, pre‑select the outcome before animating to ensure visual and logical consistency.
  • 4. For the lottery, maintain an array of available numbers, remove drawn numbers, and animate slot reels.
  • 5. Publish each project on GitHub with README and instructions to run locally.
  • 6. Share the code so others can adapt for parties, classrooms, or meetings.

Evidence

All three are intentionally small Node.js applications. They serve static files with Express, keep the browser UI in plain HTML/CSS/JavaScript, and avoid a database.

Source

The server owns one in‑memory game state: ...

Source

I choose the result first: ...

Source

The pool is built by walking the inclusive range and skipping excluded values.

Source

I would only run the unmodified version on a trusted local network.

Source

  • Record date: 2026-10-01T12:41:08.775Z