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

Fixed cases when candidates sequences was braked #22

Open
wants to merge 3 commits into
base: gh-pages
Choose a base branch
from

Conversation

abelmferreira
Copy link

Hi everyone! Thanks so much for creating this app! This tool is perfect!⭐

Testing version from @rmsy in PR #21 i notice that sometimes de sequence brakes, making the game start again, example

Candidates:

  • User1, User2, User3, User4, User5

Sometimes the script returns this kind of combinations for example:

  • User3 -> User5 -> User3 (Game Over! 🙃)
  • User1 -> User2 -> User1 (Second round)

Note that this breaks the gift sequence forcing the game start again.

This PR fix this forcing the sequence returned in all times with no breaks, for exemple:

  • User3 -> User5 -> User2 -> User1 -> User3

There is a validator function, uncomment this line to se the sequence printed in console for tests

Sometimes (20% of tests) the sequence fails and raise in error, i dont have more time to try fix this, but for me just clicking in generate again resolves.

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 this pull request may close these issues.

None yet

2 participants