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
if(move){copy.move(move);copy.generateAvailableCommandsIfNeeded();// Only save updated version if a full turn was doneif(copy.newTurn){engine=copy;}}
Possible code
if(move){// automove returns true only if at least a full move is doneif(copy.autoMove(move)){while(copy.autoMove()){}// Only save updated version if a full turn was doneengine=copy;}else{copy.move(move)}copy.generateAvailableCommandsIfNeeded();}
possible refacto too to make it seamless / use the same thing in engine/wrapper and viewer/self-contained
The text was updated successfully, but these errors were encountered:
I'm not sure, current code:
Possible code
possible refacto too to make it seamless / use the same thing in engine/wrapper and viewer/self-contained
The text was updated successfully, but these errors were encountered: