Closed kuv2707 closed 5 days ago
Comment '@csoc-bot claim' to get this issue assigned or '@csoc-bot abandon' to get this issue unassigned.
This issue is suitable for newcomers
@kuv2707 i did not understand the exact problem can you describe further more please
@draunger We currently do not trigger the THROW_CARD
event from the frontend, since we don't have any mechanism for it.
We do render JSX pertaining to each card the player has, so we can attach an event listener to the card's div, which calls channel.triggerEvent
with the appropriate parameters, enabling the user to throw a card.
You can look at other places this function is used in the codebase. It is our main gateway to communicating user actions to the server.
A preliminary implementation of this has been made by me
Description
It would make sense to click on a card to throw it. Throwing a card just involves a function call to
channel.triggerEvent
.We can add intricacies such as rearranging cards etc later on.