Skip to content

Bug: конец игры #2350

Description

@AlexDav1sh

Summary

Checking for game completion, displaying a modal window with the winner, disabling checks for the winner while showing an exit button, keeping the game active for the loser, and deleting the game only after both players have exited.

Reproduction steps

1. Go to https://codebattle.hexlet.io/ and log in.
2. Receive a match notification from an opponent and accept it.
3. Either you or your opponent must write the correct code during the match to win.
4. Wait for the match to end.

Expected result

  1. Proper game termination
  2. Displaying a modal window showing the winner
  3. Disabling the winner's ability to check and displaying an exit button
  4. Allowing the loser to remain active
  5. Deleting the game only after both players have exited

Actual result

After the game ends, the window where the code was entered remains visible; it displays "Game Over," and no further actions are offered.

Image

Текущая версия: 05f8883

Развернуто в UTC: 2026-08-03 13:38:18

Browsers

Safari

OS

Windows

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions