You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The goal of this feature is to prevent the twisty player from getting frozen when an invalid move is added. For example when an invalid move r is added to a 2x2x2 puzzle with experimentalAddMove() valid moves, such as R, will no longer work.
Possible solution
The current work around discussed with @lgarron is to check if the move can be transformed to a kpuzzle with moveToTransformation() before using experimentalAddMove() as the aforementioned function will throw an error.
Goal
The goal of this feature is to prevent the twisty player from getting frozen when an invalid move is added. For example when an invalid move
r
is added to a 2x2x2 puzzle with experimentalAddMove() valid moves, such asR
, will no longer work.Possible solution
The current work around discussed with @lgarron is to check if the move can be transformed to a kpuzzle with
moveToTransformation()
before usingexperimentalAddMove()
as the aforementioned function will throw an error.Here's my current implementation.
The solution would to be to implement this sort of check within the experimentalAddMove() function before appending the move to the twisty player.
Alternatives
No response
The text was updated successfully, but these errors were encountered: