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

another game button carries over challenge penalty #115

Closed
pkolano opened this issue Dec 29, 2023 · 2 comments
Closed

another game button carries over challenge penalty #115

pkolano opened this issue Dec 29, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@pkolano
Copy link

pkolano commented Dec 29, 2023

When a player challenges the last play of the game and loses, thereby normally losing their next turn, when you hit the "another game" button and move to the next game, the player misses their first turn in the next game even though they should start afresh without the penalty.

@cdot
Copy link
Owner

cdot commented Jan 1, 2024

When another game is started, a new game object is created. A new set of Player objects are created using the Player objects from the previous game as a template. The missNextTurn state is getting inherited that way :-(

@cdot cdot added the bug Something isn't working label Jan 1, 2024
@cdot
Copy link
Owner

cdot commented Jan 1, 2024

Should be fixed now.

@cdot cdot closed this as completed Jan 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants