Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello Mr. Mayer,
thank you for your program that is the standard de facto for the quest to infiniteness of Beggar my Neighbour.
I am from Italy where we play "Camicia" which is described by Marc M. Paulhusa in this way:
Some years ago I was an avid seeker but then I stopped the quest and now to my surprise I found that Camicia was declared non terminating in 2016b and in 2017c.
My ancient C++ code confirmed the infiniteness but it is a rat nest and so I am proposing you to add a finiteness test to your program, my proposal is very simple but I am not 100% sure it is correct.
P.S. I forgot a
print(finite)
as a last line.All the best,
Alessandro
aMarc M. Paulhus (1999) Beggar My Neighbour, The American Mathematical Monthly, 106:2, 162-165, DOI: 10.1080/00029890.1999.12005024
bSee https://cstheory.stackexchange.com/questions/22175/does-this-game-terminate/52560#52560
cSee see https://github.com/drago-96/cavacamisa/blob/master/infinite/20170217.txt and https://github.com/drago-96/cavacamisa