Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

Bug: конец игры

Aberta
#2,350 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
45/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
docker, elixir, javascript

Direção de pesquisa

Look at the game termination logic in the backend (likely Phoenix channels or LiveView) and the frontend React components for the game-over modal. The issue mentions disabling checks for the winner and showing an exit button while keeping the loser active. Start by finding where the game state is managed and how the UI updates on game completion. Check for existing tests related to game end to understand the expected flow.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

bug
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

Linguagem predominante
Elixir
Estrelas
887
Forks
237
Métricas de merge de PRs
Nenhum PR com merge em 30d

Preparar o ambiente

Abrir no Codespaces

Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de hexlet-codebattle/codebattle

Todas as issues de hexlet-codebattle/codebattle

Issues semelhantes

Mais issues de Elixir

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.