Page 3 of 26 FirstFirst 1234513 ... LastLast
Results 21 to 30 of 253

Thread: My python one-liner scramble generator

  1. #21
    Member
    Join Date
    Apr 2007
    WCA Profile
    2007GOUL01
    YouTube
    cardologist
    Posts
    4,298

    Default

    Code:
    a=rand 3
    p (1..25).map{a=(a+rand(2)+1)%3;[%w{R L},%w{F B},%w{D U}][a].sample+["","'","2"].sample}*" "
    Just a few changes to tim's. Should work fine.
    #

  2. #22

    Default

    Haha I made a scrambler in TI-basic last year so we could get scrambles on our calculators.
    [19:36] <DavidWoner> you make me feel inadequate
    My mission in life is accomplished

  3. #23
    statue
    Join Date
    Jul 2008
    Location
    Camp Hill, PA, USA
    WCA Profile
    2008KORI02
    YouTube
    StachuK1992
    Posts
    3,463

    Default

    Why would a scramble not be allowed to always start with U/D?

    I mean, when rotated, R = U, and moves relative to that are the same relative to those faces/axis.

  4. #24
    Member qqwref's Avatar
    Join Date
    Dec 2007
    Location
    a <script> tag near you
    WCA Profile
    2006GOTT01
    YouTube
    qqwref2
    Posts
    6,337

    Default

    What if you aren't color neutral? Wouldn't it matter then?
    Computer cube PB averages of 12: [Clock: 5.72] [Pyraminx: 3.44] [Megaminx: 49.52]
    [2x2: 2.66] [3x3: 8.71] [4x4: 29.06] [5x5: 52.69] [6x6: 1:34.78] [7x7: 2:20.34]

  5. #25
    statue
    Join Date
    Jul 2008
    Location
    Camp Hill, PA, USA
    WCA Profile
    2008KORI02
    YouTube
    StachuK1992
    Posts
    3,463

    Default

    Quote Originally Posted by qqwref View Post
    What if you aren't color neutral? Wouldn't it matter then?
    How is that relevant?
    If 10 peoples' cubes are scrambled with the same algorithm, and any state can be reached in 25 moves, then everyone's puzzle should be well-scrambled just as if they were scrambled with a random first face. No?

  6. #26
    Super-Duper Moderator Lucas Garron's Avatar
    Join Date
    Jul 2007
    Location
    Where the rolling foothills rise
    WCA Profile
    2006GARR01
    YouTube
    LucasGarron
    Posts
    2,833

    Default

    Quote Originally Posted by StachuK1992 View Post
    How is that relevant?
    If 10 peoples' cubes are scrambled with the same algorithm, and any state can be reached in 25 moves, then everyone's puzzle should be well-scrambled just as if they were scrambled with a random first face. No?
    That's about good as reasoning that since a 20 random-move scramble can reach any state, it should be a random state.

    But in practice, doesn't really matter. We use random-state where it counts, and I hope someday it will be no problem to use MRSS everywhere.
    garron.us | cubing.net | twisty.js | ACube.js | Mark 2 | Regs | Show people your algs: alg.garron.us

  7. #27
    Member mr. giggums's Avatar
    Join Date
    Feb 2010
    Location
    Batavia, Northern Illinois
    WCA Profile
    2011BERN02
    Posts
    392

    Default

    Quote Originally Posted by dbax0999 View Post
    Haha I made a scrambler in TI-basic last year so we could get scrambles on our calculators.
    Haha I did that this too. Mine was probably horribly inefficent though.
    There are 10 kinds of people in the world. Those who get it, those who don't, and those who didn't see a ternary joke coming. ~Petrus Solver~

  8. #28
    Member VP7's Avatar
    Join Date
    Aug 2008
    Location
    Ohio
    Posts
    67

    Default

    Here is one written in Qbasic.
    How to add output to a file, I leave as an exercise.

    RANDOMIZE TIMER
    CLS
    A$ = "UDFBLR '2"
    FOR T = 1 TO 10
    V$ = ""
    FOR S = 1 TO 25
    BAD:
    M$ = MID$(A$, INT(RND * 6) + 1, 1)
    T$ = MID$(A$, ((INT(RND * 3) + 1) + 6), 1)
    IF M$ = N$ THEN GOTO BAD
    V$ = V$ + M$ + T$ + " "
    N$ = M$
    NEXT S
    PRINT V$: PRINT
    NEXT T

    Download for qbasic here:
    http://www.qbcafe.net/qbc/english/do...compiler.shtml

    A download for a up todate qbasic:
    http://www.qb64.net/forum/index.php?...ik5jqcgd391r5&
    My 2nd line of signature space is up for rent.

  9. #29

    Default

    Anyone want to make a nice scrambler for the motorola w180?
    I can't find any documentations for it. Its java I guess...

  10. #30

    Default

    Anyone who writes a scrambler with Brainf*** wins my respect.
    [19:36] <DavidWoner> you make me feel inadequate
    My mission in life is accomplished

Tags for this Thread

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
  •