Descrição: Endpoint para o Player 2 entrar no Match. AC:
Validar se o Match está com status Pending.
Validar se o user que está a tentar entrar não tem outros jogos ativos.
Se for o Player 1 a tentar entrar, retornar sucesso (Reconnect).
Se for um novo jogador, atualizar player2_user_id com o ID dele.
Alterar status para Playing.
Descrição: Endpoint para o Player 2 entrar no Match. AC:
Validar se o Match está com status Pending.
Validar se o user que está a tentar entrar não tem outros jogos ativos.
Se for o Player 1 a tentar entrar, retornar sucesso (Reconnect).
Se for um novo jogador, atualizar player2_user_id com o ID dele.
Alterar status para Playing.
KZix
added the apigameplay labels 2025-12-14 02:32:23 +00:00
KZix
self-assigned this 2025-12-14 02:32:23 +00:00
KZix
added this to the Bisca - API project 2025-12-14 02:32:23 +00:00
KZix
moved this to In Progress in Bisca - API on 2025-12-14 02:33:16 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Descrição: Endpoint para o Player 2 entrar no Match. AC:
Validar se o Match está com status Pending.
Validar se o user que está a tentar entrar não tem outros jogos ativos.
Se for o Player 1 a tentar entrar, retornar sucesso (Reconnect).
Se for um novo jogador, atualizar player2_user_id com o ID dele.
Alterar status para Playing.