because the backend probably does not notify that the game has ended, we could in front-end logic change the PlayerSlot component to a Results component displaying both the Victor and the Loser(s)
proposal (as a quick-win):
because the backend probably does not notify that the game has ended, we could in front-end logic change the PlayerSlot component to a Results component displaying both the Victor and the Loser(s)
We just need to add code inside those two functions. Those are supposed to be called automatically already.
https://git.legonzaur.fr/legonzaur/heron-realms-front/src/commit/ae638ba920d0d5da5a0758e7dbc806c70dc9c282/components/GameBoard.vue#L33
https://git.legonzaur.fr/legonzaur/heron-realms-front/src/commit/ae638ba920d0d5da5a0758e7dbc806c70dc9c282/components/GameBoard.vue#L37
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.
proposal (as a quick-win):
because the backend probably does not notify that the game has ended, we could in front-end logic change the PlayerSlot component to a Results component displaying both the Victor and the Loser(s)
A backend modification should be possible and quick with a new context (game_ended) and a context data (won or lost)
Needs
27dd89fcd3We just need to add code inside those two functions. Those are supposed to be called automatically already.
ae638ba920/components/GameBoard.vue (L33)ae638ba920/components/GameBoard.vue (L37)cf02d3a0eaClicking on the victory or lose screen should redirect the user to the lobby