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

Implement score method for cards of type "Victory" #20

Closed
evanofslack opened this issue Oct 23, 2021 · 0 comments · Fixed by #21
Closed

Implement score method for cards of type "Victory" #20

evanofslack opened this issue Oct 23, 2021 · 0 comments · Fixed by #21
Labels
enhancement New feature or request

Comments

@evanofslack
Copy link
Owner

When calculating a player's score, we want to iterate through all of a player's cards and sum the points of each victory card. Each victory card should have a method score that returns an integer (number of VP that card scores).

Calculating VP for basic victory cards (Province, Duchy, Estate) is straightforward, but this method would be important for interactive victory cards (Gardens).

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

Successfully merging a pull request may close this issue.

1 participant