Skip to content

Add rejectDraw method to GameManager #6

@dennisthemenacing

Description

@dennisthemenacing

Feature Request\n\nThe handles draw offers via and , but there's no way for a player to explicitly reject a draw offer.\n\nCurrent behavior:\n- Player A offers a draw ()\n- is set to A's color\n- Player B can accept it ()\n- If B wants to decline, they must either ignore it or make a move (which doesn't clear the offer)\n\nProposed behavior:\nAdd a method that:\n1. Returns if the player isn't in a game or no draw is outstanding\n2. Clears when called\n3. Returns the updated game\n\nThis keeps the draw offer protocol more symmetrical and gives explicit feedback to the client.\n\n\nFiles likely affected:\n- — add the method\n- — add to interface\n- — add tests

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions