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

Use longs for swindlers, allowing even bigger swindlers #791

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

vgskye
Copy link
Contributor

@vgskye vgskye commented Nov 14, 2024

issue observed by cjcool1 in discord. I have no clue what he was doing that needed a swindler of 12+ items but hey it works now

@gamma-delta
Copy link
Collaborator

I hate it but I love it

@gamma-delta gamma-delta merged commit 21b16ed into FallingColors:main Nov 18, 2024
4 checks passed
@gamma-delta
Copy link
Collaborator

I did some math and this should allow swindling up to 18 elements. Certain 19-long swindles should also be allowed. (The bottleneck is that the number is a double, so the highest integer you can represent cleanly is 2^53. See https://stackoverflow.com/questions/1848700/biggest-integer-that-can-be-stored-in-a-double)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

2 participants