The code now checks that the 17-ala remains knotted over 30 consecutive frames. This seems to work well, but the number 30 was chosen arbitrarily, so maybe this should change in the future.
In terms of the UI, nothing has changed for the moment. Luis suggested that this is probably best, but we can see if something needs to be implemented to let the know when the code starts detecting a knot. Currently the player is not notified when the first knot is detected, the simulation only changes colour once the stable knot is detected, and then the confetti comes a little after that.
The code now checks that the 17-ala remains knotted over 30 consecutive frames. This seems to work well, but the number 30 was chosen arbitrarily, so maybe this should change in the future.
In terms of the UI, nothing has changed for the moment. Luis suggested that this is probably best, but we can see if something needs to be implemented to let the know when the code starts detecting a knot. Currently the player is not notified when the first knot is detected, the simulation only changes colour once the stable knot is detected, and then the confetti comes a little after that.