Skip to content

Add multiplayer scoreboard mode with Firebase signaling#8

Draft
Copilot wants to merge 3 commits intomasterfrom
copilot/setup-scoreboard-and-multiplayer
Draft

Add multiplayer scoreboard mode with Firebase signaling#8
Copilot wants to merge 3 commits intomasterfrom
copilot/setup-scoreboard-and-multiplayer

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 28, 2025

Adds a dedicated scoreboard display for tablets and a roller interface for phones to submit dice rolls, using Firebase Realtime Database for synchronization.

New Components

  • Scoreboard Mode (scoreboard.html/css/js) - Tablet-optimized display showing bank, round, turn, player scores. Creates 4-char room codes for joining.
  • Roller Mode (roller.html/css/js) - Phone interface to join games and submit dice rolls to the scoreboard.
  • Multiplayer Manager (multiplayer.js) - Handles room creation, state sync, and roll/bank request forwarding via Firebase.

Changes

  • Updated index.html with mode selector links
  • Updated sw.js cache manifest for new files
  • Updated README.md with multiplayer setup docs

Setup Required

Replace placeholder values in firebase-config.js with your Firebase project credentials:

const firebaseConfig = {
    apiKey: "YOUR_API_KEY",
    databaseURL: "https://YOUR_PROJECT.firebaseio.com",
    // ...
};

Screenshots

Main Page

Main Page

Scoreboard Mode

Scoreboard

Original prompt

I need a separate score board, and prep to host multi player with webrtc. Let's set this up using firebase as a signaling server.

for the first new iteration, I want a mode where I can set up a tablet as a scoreboard, showing the bank, round number, turn, and each players score. then one or more phones will connect to register roll numbers.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits November 28, 2025 23:59
Co-authored-by: spencerschumann <30957254+spencerschumann@users.noreply.github.com>
Co-authored-by: spencerschumann <30957254+spencerschumann@users.noreply.github.com>
Copilot AI changed the title [WIP] Add scoreboard and multiplayer setup with WebRTC Add multiplayer scoreboard mode with Firebase signaling Nov 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants