rummikub
rummikub copied to clipboard
a specific case
Hello,
I worked on this algo recently, my solution was initially based on your solution, with a bit of recursivity
I added it because some cases are not handled correctly
for example :
[3, "A"], [4, "A"], [5, "A"], [6, "A"], [7, "A"], [6, "B"], [6, "C"]
will return [6, "B"], [6, "C"]
as rest while it should be[7, "A"]
only
this is my solution, what do you think? https://github.com/no-on3/RummiKubPython/blob/main/script.py