Just a few changes to tim's. Should work fine.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.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}*" "
Haha I made a scrambler in TI-basic last year so we could get scrambles on our calculators.
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.
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&
Anyone want to make a nice scrambler for the motorola w180?
I can't find any documentations for it. Its java I guess...
Anyone who writes a scrambler with Brainf*** wins my respect.
Bookmarks