bearbob / bearbob/cheat-cooperate

Adding a user with the same ID to multiple rooms

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Adding a user (or users with the same ID) to multiple rooms should fail.
Use case:
game.createRoom('test');
game.addPlayer('test', 'a');

game.createRoom('test2');
game.addPlayer('test2', 'a');

Contributor guide

Open the contributing guide

Research direction

The issue identifies game.createRoom and game.addPlayer as the relevant entry points; trace how player IDs are stored across rooms and how addPlayer reports failures. Add coverage for the shown two-room case and confirm that adding the same ID to the second room fails.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.