Events
document.addEventListener("DK-%event%", (e) => {console.log(e.detail)})
Call when :
join- Player joins the DK game -Playerthat joinedleft- a Player leaves -Playerthat leftstart- 4 players are connected a the game is startedannouncemented- you announcementedturnToAnnouncement- its your turn to announce -string[]list of possible announcements you can makecardPlayed- a played played a card -Cardthat was playedPlayerthat played the cardturn- its your turn to play a card -Playeryour playerwinTrick- a player wins a trick -Playerthe player that won the trickendGame- the game ended - teamOneGamePoints, teamTwoGamePoints, teamOnePoints, teamTwoPoints,teamWithMostPointslist of players that won