daibar wrote: I'm a little confused; I thought level 1 illusions swapped 7 pairs of colored tiles, but my memory comes from Loki Lightning rounds and the approximate timing of the swap. Is that not the way it's implemented? Unless I'm misunderstanding, your implementation has it so that tiles can be swapped back into the same place and has twice the swaps. I would have thought it would be p2 = random(len-n)+n
p1=random(len); p2=random(len); //hopefully avoiding it being p1
DayvBang wrote: NorthernPolarity: Any updates on patterned skills? I expected She-Hulk's red to be a decent cascade generator based on its spikes from the bottom of the screen, but in her current PvP I'm starting to doubt that. It certainly doesn't seem to compare to X-Force when both are at 5 covers.
L=L.difference(B).shuffle(); // List of non-teamup tiles, shuffled var len=L.length; var n=14; // Set number of tiles to swap if (n>L.length/2 n = L.length /2;) // if there are less non-teamup tiles, limit swaps to available number of paired tiles for(j=0;j<n;j++){ GG.Swap(j,j+n); // swap each pairing of tiles. }
daibar wrote: Ah okay, had a couple more Loki battles recently. Unless I'm mistaken (quite possible), I think the algorithm relies on pairs and should be more like: L=L.difference(B).shuffle(); // List of non-teamup tiles, shuffled var len=L.length; var n=14; // Set number of tiles to swap if (n>L.length/2 n = L.length /2;) // if there are less non-teamup tiles, limit swaps to available number of paired tiles for(j=0;j<n;j++){ GG.Swap(j,j+n); // swap each pairing of tiles. } I've been looking for MPQ video of illusions to confirm that tiles either move in pairs or can be swapped multiple times, but no one uses Loki
turul wrote: DayvBang wrote: NorthernPolarity: Any updates on patterned skills? I expected She-Hulk's red to be a decent cascade generator based on its spikes from the bottom of the screen, but in her current PvP I'm starting to doubt that. It certainly doesn't seem to compare to X-Force when both are at 5 covers. Using my simulator, out of 10000 simulations:Xforce Green: dumping: 3969,3810,3818,4054,3754,4144,3827 43.37% 6732,6397,6627,6429,6515,6509,6826 61.32% 7311,7086,7313,7168,7475,7272,7517 66.41% used algorithm: destroyed tiles not cut off by field edges, 3x 3x3 might overlap but not 100%.