br4dyb / br4dyb.github.io

https://br4dyb.github.io/
1 stars 0 forks source link

"End Voting Time" not updating in time #4

Open br4dyb opened 4 weeks ago

br4dyb commented 4 weeks ago

It seems by random, sometimes the voting end time for the players to choose whether to play again or not.... the "EndVoteTime" will not be updated in the firestore database before the voting time / functions begins. This will cause the voting to immediately end before giving the game players an opportunity to vote. Inevitably ending the game and redirecting game plays to the homepage.

br4dyb commented 3 weeks ago

[Potentially Fixed!]: Still awaiting testing with others!

Solution: Used Firestore Database to upload and track voting times / player votes to determine the fate of the current game. Whether to continue or end the game and listen for any changes. Making sure there's enough time for each player to vote, and to only begin the voting interval once the new time is uploaded. Making sure the voting did not start before hand which previously caused issues ending the game before voting occurred!