Skip to content

Global game state breaks multiplayer #2

@EliotGodard

Description

@EliotGodard

Problem

agxgame.js stores questions as a single module-level array. If two hosts create games simultaneously, they overwrite each other's question set.

Suggested fix

Store game state in a Map keyed by gameId so each room has its own isolated state (questions, round counter, ploys, etc.).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions