Essais de permutations de valeurs

changements-pile
adplantade 5 years ago
parent 5cb80d04f8
commit 4d8aba8fd1

@ -298,14 +298,11 @@
function changeOrder(from, to)
{
oldTab=eval("tab"+from);
newTab=eval("tab"+to);
tmpTab=Array.from(newTab);
console.log(from+" va en "+to);
newTab=oldTab;
oldTab=tmpTab;
toutDessiner(oldTab,eval("canvas"+from),eval("ctx"+from));
toutDessiner(newTab,eval("canvas"+to),eval("ctx"+to));
fromTab=eval("tab"+from);
toTab=eval("tab"+to);
[fromTab,toTab]=[toTab,fromTab];
toutDessiner(fromTab,eval("canvas"+from),eval("ctx"+from));
toutDessiner(toTab,eval("canvas"+to),eval("ctx"+to));
}

Loading…
Cancel
Save