-
Notifications
You must be signed in to change notification settings - Fork 25
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
Show a count of non-optimal card flips #35
Comments
Hello @petermayer , I am interested by the issue, I would like to know if you are still active on the project because i can find a solution. thank you |
Hi @Sidahmed-ben, yes the project is still active, but we are just currently working on other PFAs. If you can contribute a patch for this issue, it is highly appreciated! However, I feel it might be good to keep both ways of counting and give the user the info X flips needed to solve with Y optimal and Z non-optimal flips, where X=Y+Z. |
@petermayer @sleep-yearning @hanneshofmann thank you for the reply , so to dispaly the score when playing, i keep the number of tries and i add another score Y,Z that I increment after each flip. At the end I display the final score X = Y + Z .Do you think that it's okay or do you have another suggestion ! 😇 |
@Sidahmed-ben That seems fine! 👍 |
@petermayer Great 🤞 |
The Memo game counts the number of tries. However, due to the random distribution of the deck, this doesn't always properly reflect how well the user played. As such, it would be desirable to include a count of the non-optimal card flips taken by the user (less is better).
A card flip is deemed non-optimal if:
OR
For example, given the following board:
The user could do:
With a total of 5 non-optimal flips, which with a perfect play should have been zero.
Note that in 10 the user knew the card at F, despite not having flipped it, and thus it isn't non-optimal to begin by flipping f, since it correctly pick its pair.
The text was updated successfully, but these errors were encountered: