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
{{ message }}
Repository navigation
Inquire into the right way to use custom doMoveOnGenuineVariables, then judge whether valid, the UndoMove if invalid
#1244
I am using timefold 1.16.0. I met a question about undo invalid move. What I want is:
moveListFactory: create Move List
SelectionFilter: filter some redundant original == target
CustomAbstractMove similar to this one: doMoveOnGenuineVariables, and after the move judge if the move is valid, if invalid, undo
Now I met two issue:
first is the move, it seems the isMoveDoable is executed before than doMoveOnGenuineVariables. so I don't know how to judge if the move is valid after doMoveOnGenuineVariables, and if not undo it.
second is the filter, I use the config like this, but the filter class is passed, and not working.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hey,
Thanks a lot for the nice open source tool.
I am using timefold 1.16.0. I met a question about undo invalid move. What I want is:
Now I met two issue:
Any help will be grateful.
All reactions