-
Notifications
You must be signed in to change notification settings - Fork 31
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
Core dump with "g" operator #12
Comments
It is dedicated to build groups.
The group operator bring together die values to reach the group value (10 in previous example).
10 => 1 group |
Isn't that just integer division?
|
No it is more complex than that. In this result, the integer division (9+9+2)/10 is 2 When you use a number, you lost it. Same if I use both 9, 18 > 10, So I get one success. But the 2 remains and I can't reach 10 with 2. |
Ok, thanks for the precision. I think you should add this example to the documentation. |
Btw, I'm happily surprise that he is able to correctly solve the backpack problem for case like |
I'm not quiet sure my algorithm works every time and I can't prove it is right. It was really funny to implement, but it is a bit dirty. Perhaps there are ways to make it cleaner and more optimized |
I set many unit test on rolisteam code and I fix an issue about g operator. It was en endless loop in some case. |
Hello, I was reading the documentation, and I don't understand what the Group operator is supposed to do. Can you please explain me what it is supposed to do?
I tried to test it, but I always got a core dump:
The text was updated successfully, but these errors were encountered: