Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resign Game #31

Open
Ali9731 opened this issue Mar 1, 2023 · 3 comments
Open

Resign Game #31

Ali9731 opened this issue Mar 1, 2023 · 3 comments

Comments

@Ali9731
Copy link

Ali9731 commented Mar 1, 2023

Hi,
when i using resign game .
it runs 3 times till the match ends.
this is the logs on server:

---->these are the logs after clicking resign game just one time

Resign game { clientMsgSeq: 11 }
match score before update------------- [ 0, 0 ]
score ====== 3
match score after update=============== [ 3, 0 ]
Game finished , Creating new one ...
bankemoon0000000000000000 180
Timer started for match with ID: 48082354
Players remaining time for match: 48082354 [ 0, 0 ]
Resign game { clientMsgSeq: 12 }
match score before update------------- [ 3, 0 ]
score ====== 3
match score after update=============== [ 6, 0 ]
match score > match length!!!
match isover == true , so match is over
Resign game { clientMsgSeq: 13 }
match score before update------------- [ 6, 0 ]
match score after update=============== [ 6, 0 ]
match score > match length!!!
match isover == true , so match is over
Socket ID: k4vL5OdpN7d71dLrAAAA
38
not_double
Recursion time: 1.374ms
Socket ID: k4vL5OdpN7d71dLrAAAA
Socket ID: k4vL5OdpN7d71dLrAAAA
Socket ID: k4vL5OdpN7d71dLrAAAA
Socket ID: k4vL5OdpN7d71dLrAAAA
Axios: Match result of set

@Ali9731
Copy link
Author

Ali9731 commented Mar 1, 2023

why it runs resign game 3 times??

@quasoft
Copy link
Owner

quasoft commented Mar 1, 2023

Looks like a bug that should be traced all the way from clicking the button, through updating the match state, to updating the UI on the client.

Don't have suitable environment or time to test it myself.

@Ali9731
Copy link
Author

Ali9731 commented Jun 17, 2023

thanks ,fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants