hm...how many moves should it be?
hmm... Apparently version 0.9.5 already has this, but this plugin will work for earlier versions of CCT (I'm running 0.9.4).
who basically translated Jaap's code)
Where can I get CCT 0.9.5? Because my CCT is 0.9.3 and that file doesn't seems to work...
EDIT: Found it, nevermind
hmm... Apparently version 0.9.5 already has this, but this plugin will work for earlier versions of CCT (I'm running 0.9.4).
Wasted my time, fool!
who basically translated Jaap's code)
Does anyone have a link to this code? I can't seem to find it.
who basically translated Jaap's code)
Does anyone have a link to this code? I can't seem to find it.
check the source of the official scrambler.
http://www.worldcubeassociation.org/regulations/scrambles/scramble_cube_222.html
that's the scrambler you get when you look in the regulations.
function mix(){
initbrd();
for(var i=0;i<500;i++){
var f=Math.floor(Math.random()*3+3) + 16*Math.floor(Math.random()*3);
domove(f);
}
}
Correct me if I'm wrong but technically that isn't a random-state scrambler.
The function which does the scramble is as follows:
...which basically applies 500 random moves to the cube. I know this because I made use of Jaap's solver for the 2x2 scrambler in cTimer, but I had to write supporting code to generate random cube states (code here). Of course, the statistical difference between a 500-move scramble and a random-state scramble will be negligible on a 2x2, but using 500 random moves just seems like an inefficient hack.Code:function mix(){ initbrd(); for(var i=0;i<500;i++){ var f=Math.floor(Math.random()*3+3) + 16*Math.floor(Math.random()*3); domove(f); } }
It just means that the programmer doesn't really understand what random-state refers to. It's also very very easy to generate a random position; I don't understand why you guys are using such convoluted methods. >_>
It just means that the programmer doesn't really understand what random-state refers to. It's also very very easy to generate a random position; I don't understand why you guys are using such convoluted methods. >_>
Hmm, is my randomCube() function a bit bloated?? I couldn't think of a more direct algorithm than that :confused:
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
O | Are there a 2x2x2 optimal face or layer solver? | Software Area | 4 | |
Optimal Order for 2x2 to 7x7 | Puzzle Theory | 5 | ||
Online 2x2 optimal layer solver | Software Area | 8 | ||
Optimal 2x2x2 Solver in MATLAB | Software Area | 14 | ||
I | How short can 2x2 optimal scrambles get! | Off-Topic Discussion | 7 |