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

List of remaining awards in Missile_Award_mode not kept independently for each player #9

Open
clempo2 opened this issue Oct 4, 2021 · 0 comments

Comments

@clempo2
Copy link
Contributor

clempo2 commented Oct 4, 2021

In Missile_Award_Mode, the variable swards_remaining is a typo
self.swards_remaining = self.awards
Also, the value assigned should be a copy of the awards to keep every player independent.
This is the correct statement:
self.awards_remaining = self.awards[:]
This bug will manifest itself only for player 2 to 4.

clempo2 referenced this issue in clempo2/JD2-pyprocgame Oct 4, 2021
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

1 participant