Page 2 of 6 FirstFirst 1234 ... LastLast
Results 11 to 20 of 56

Thread: Preview of my JavaScript Timer

  1. #11
    Premium Member Cride5's Avatar
    Join Date
    Jan 2009
    Location
    Scotland
    WCA Profile
    2009RIDE01
    Posts
    1,195

    Default

    Quote Originally Posted by K073 View Post
    Kociemba is written in JAVA not JavaScript!
    Quote Originally Posted by Cride5 View Post
    I've already tried implementing the Kociemba 2-phase algorithm in js, but the memory consumption was too high
    Kociemba is currently implemented in C and Java. My attempt was a port of the Java implementation to Javascript. I say attempt because it failed for the reasons stated. Please don't accuse me of not knowing the difference between Java and Javascript, it's patronising.


    Quote Originally Posted by K073 View Post
    how am I going to make a Java applet interact with my scripts so that the script an fetch and save all the scrambles
    this is possible...
    Last edited by Cride5; 11-14-2009 at 08:49 AM.
    3x3(ZZ): a12 16.73, pb 11.22 nl | 2x2(Guimond): a12 5.27, pb 3.40 nl | FM a12 30.1, pb 21
    Or you can just use the Wiki .. or cTimer .. or VisualCube

  2. #12
    Member theretardedcuber's Avatar
    Join Date
    Aug 2009
    Location
    newcastle, uk
    WCA Profile
    2009DICK02
    YouTube
    TheRetardedCuber
    Posts
    111

    Default

    looks pretty good
    cant have enough timers =]
    A.K.A.. Chris dikson =] [3x3x3 pb single 17.07|avg:5 23.71|avg:12 24.58][4x4x4 single 1:48.93] [olls 29/57] currently learning all olls (doing rather well =])

  3. #13

    Default

    Quote Originally Posted by Cride5 View Post
    Quote Originally Posted by K073 View Post
    Kociemba is written in JAVA not JavaScript!
    Quote Originally Posted by Cride5 View Post
    I've already tried implementing the Kociemba 2-phase algorithm in js, but the memory consumption was too high
    Kociemba is currently implemented in C and Java. My attempt was a port of the Java implementation to Javascript. I say attempt because it failed for the reasons stated. Please don't accuse me of not knowing the difference between Java and Javascript, it's patronising.
    ok, my bad...

    Quote Originally Posted by Cride5 View Post
    Quote Originally Posted by K073 View Post
    how am I going to make a Java applet interact with my scripts so that the script an fetch and save all the scrambles
    this is possible...
    even if I can do this I won't because I would rather not to make it complex by adding Java applets. Even if I really add it, how am I supposed to get the scramble preview to function properly?? I'm bad at Java language

  4. #14
    Premium Member
    Join Date
    Aug 2009
    Location
    Melbourne, Victoria, Australia
    WCA Profile
    2010MAJO01
    Posts
    3,617

    Default

    I'm liking it. I used qqtimer, I switched to http://zzzonked.googlepages.com/testtimer10.html
    but it was missing a few functions, and did not have as many puzzles. I will use this once you finish it.
    jesus christ how horrifying

  5. #15

    Default

    quote from http://cube.crider.co.uk/scrambler.html:
    Scrambles are built by generating a statistically random cube state and using the Kociemba two-phase algorithm to find a solution to it. The inverse of the solution is then given as the scramble.
    this means that the cube is scrambled, solved using 2-phase algorithm, inverse the solution to make it a scramble. the scramble is only shorten, not really necessary(except if you are not capable of doing 4/5 more moves)

  6. #16
    Member Odder's Avatar
    Join Date
    Feb 2009
    WCA Profile
    2008ANDE02
    YouTube
    Minxer2011
    Posts
    1,404

    Default

    I'm not sold before pyraminx is added... (optimal scrambles too xD)

  7. #17

    Default

    Quote Originally Posted by K073 View Post
    this means that the cube is scrambled, solved using 2-phase algorithm, inverse the solution to make it a scramble. the scramble is only shorten, not really necessary
    The point isn't to have shorter scrambles, it's to have better scrambles. Making 25 random moves doesn't give a good distribution (some positions are significantly more probable than others), generating a random position does.

    Anyway, I can't follow you. Did someone actually say you should add a Java applet to your scrambler? Cride just mentioned it as an example of another window that's nice to have open at the same time as a timer. Quote what you're replying to in the future unless it's obvious.

  8. #18

    Default

    Quote Originally Posted by Odder View Post
    I'm not sold before pyraminx is added... (optimal scrambles too xD)
    why is it so important to have pyraminx? it's a CUBE timer, not a puzzle timer. btw, that's not my point. I don't play pyraminx(or should I say "usually don't") and as I said previously, I modified a timer to suit my style, so non-cube is not necessary for me, yet.
    Btw, if you really don't want any scramble previews, I can get pyraminx into it.
    And, I'll consider optimal scrambler other times, now a little busy.

    Quote Originally Posted by Johannes91 View Post
    Quote Originally Posted by K073 View Post
    this means that the cube is scrambled, solved using 2-phase algorithm, inverse the solution to make it a scramble. the scramble is only shorten, not really necessary
    The point isn't to have shorter scrambles, it's to have better scrambles. Making 25 random moves doesn't give a good distribution (some positions are significantly more probable than others), generating a random position does.

    Anyway, I can't follow you. Did someone actually say you should add a Java applet to your scrambler? Cride just mentioned it as an example of another window that's nice to have open at the same time as a timer. Quote what you're replying to in the future unless it's obvious.
    I mean, you won't even know whether a scramble is optimal or not and the pieces are in random positions or not, unless you are doing BLD. So, you won't even know whether it's really in random position or not unless you examine every pieces during your inspection time.
    No one said that I should add Java applet, but it's indirectly calling me to do so, because something like Kocembia's two-phase algorithm can only easier to do with Java but not JavaScript. If I open that thing in a new window or pop up, I wouldn't even bother the scrambles there, because there's many things blocking in between Java and JavaScript.

  9. #19
    Member Odder's Avatar
    Join Date
    Feb 2009
    WCA Profile
    2008ANDE02
    YouTube
    Minxer2011
    Posts
    1,404

    Default

    Quote Originally Posted by K073 View Post
    Quote Originally Posted by Odder View Post
    I'm not sold before pyraminx is added... (optimal scrambles too xD)
    why is it so important to have pyraminx? it's a CUBE timer, not a puzzle timer. btw, that's not my point. I don't play pyraminx(or should I say "usually don't") and as I said previously, I modified a timer to suit my style, so non-cube is not necessary for me, yet.
    Btw, if you really don't want any scramble previews, I can get pyraminx into it.
    And, I'll consider optimal scrambler other times, now a little busy.
    Pyraminx is the puzzle I'm best at... so the timer I want to use should REALLY have pyraminx scrambles hehe :P
    I don't need a scramble preview... just the scramble :P and as long as the move count is sub 20 I'm happy xD
    Last edited by Odder; 11-15-2009 at 06:01 AM.

  10. #20
    Premium Member Cride5's Avatar
    Join Date
    Jan 2009
    Location
    Scotland
    WCA Profile
    2009RIDE01
    Posts
    1,195

    Default

    Quote Originally Posted by Cride5 View Post
    Quote Originally Posted by K073 View Post
    how am I going to make a Java applet interact with my scripts so that the script an fetch and save all the scrambles
    this is possible...
    http://java.sun.com/products/plugin/.../jsobject.html

    Allowing the script to interface with java means you can generate random-state scramblers relatively quickly, and would allow interfacing with a stackmat. it may be a better idea to just implement the whole timer program as a java applet, but doing so means having the java plugin is a necessity, rather than an optional extra for providing random state scrambles + stackmat interfacing.

    Quote Originally Posted by K073 View Post
    I mean, you won't even know whether a scramble is optimal or not and the pieces are in random positions or not, unless you are doing BLD. So, you won't even know whether it's really in random position or not unless you examine every pieces during your inspection time.
    Read this: http://www.speedsolving.com/forum/sh...ad.php?t=12969

    And look up "Random Walk" and "Uniform Random Distribution"
    3x3(ZZ): a12 16.73, pb 11.22 nl | 2x2(Guimond): a12 5.27, pb 3.40 nl | FM a12 30.1, pb 21
    Or you can just use the Wiki .. or cTimer .. or VisualCube

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •