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

< or <= #5

Open
RedPython73 opened this issue Sep 13, 2019 · 1 comment
Open

< or <= #5

RedPython73 opened this issue Sep 13, 2019 · 1 comment

Comments

@RedPython73
Copy link

This is only something small but, I think line 17 should read while trials < cap: rather than while trials <= cap:

This can be seen by setting max to 0. There should only be 1 trial but there will be two 2

It is even less of an issue with larger values of max

@pcholt
Copy link

pcholt commented Sep 13, 2019

You should be able to test this, and see if there's a reasonable solution when the number of hops across the pond is restricted to 2. There should be half the crossings taking 2 hops, and half the crossings taking 1 hop.

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

2 participants