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

Three peaks scoring does not count card sequences #111

Closed
AndisGrossteins opened this issue Apr 20, 2019 · 4 comments · Fixed by #112
Closed

Three peaks scoring does not count card sequences #111

AndisGrossteins opened this issue Apr 20, 2019 · 4 comments · Fixed by #112

Comments

@AndisGrossteins
Copy link

Three peaks with scoring doesn't update hand score for completed card sequences. The score is calculated and updated only once at the end of game but it should be calculated for each played card.

This has been reported on Sourceforge back in 2010 but wasn't fixed.
There's also a FIXME comment in the code referencing bug 2937253.

At first, it seemed like a simple fix but after looking at the source code it looks like it's incomplete. Specifically, I can't find where the sequence property in ThreePeaks class is incremented and it doesn't seem to be inherited from parent class.

@Programator2
Copy link
Collaborator

Thanks for the report. I'm working on a fix.

Programator2 added a commit that referenced this issue Apr 21, 2019
Score is correctly updated after moving a card to the waste stack or
after winning a game. Double counting is prevented by the score_counted
variable.

see #111
@Programator2
Copy link
Collaborator

I have pushed a fix here:
https://github.com/shlomif/PySolFC/tree/three-peaks-score

Can you check if it works fine before I merge it into master?

@AndisGrossteins
Copy link
Author

I checked out the branch, did a py2exe build, and played a few games. Scoring seems to work according to rules.

One other issue I noticed previously when building from trunk - auto sizing doesn't function and the option dropdown is missing from menu. I guess it's a work in progress.

Thanks for your time.

@Programator2
Copy link
Collaborator

Great, thanks for checking it.

Auto sizing works only with Pillow installed, otherwise it's deactivated.

Programator2 added a commit that referenced this issue Apr 22, 2019
Score is correctly updated after moving a card to the waste stack or
after winning a game. Double counting is prevented by the score_counted
variable.

see #111
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

Successfully merging a pull request may close this issue.

2 participants