Created
November 19, 2022 09:08
-
-
Save bostrot/db8bc3a2d70df6bd05fb551c3a97c829 to your computer and use it in GitHub Desktop.
Outcore Stages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mv(steps) { | |
for (var i = 0; i < steps; i++) { | |
MoveForward() | |
} | |
} | |
function tl() { | |
TurnLeft() | |
} | |
function tr() { | |
TurnRight() | |
} | |
function ta() { | |
for (var i = 0; i < 2; i++) { | |
tl() | |
} | |
} | |
function bs(times) { | |
for (var i = 0; i < times; i++) { | |
DoNothing() | |
} | |
} | |
function rsp() { | |
tl() | |
mv(2) | |
tr() | |
mv(1) | |
tl() | |
} | |
function rbr() { | |
mv(1) | |
tl() | |
mv(7) | |
tr() | |
mv(5) | |
tl() | |
bs(3) | |
} | |
function rrr() { | |
tl() | |
mv(1) | |
tr() | |
mv(4) | |
tr() | |
mv(4) | |
tr() | |
mv(5) | |
tl() | |
mv(1) | |
tr() | |
mv(5) | |
tl() | |
mv(2) | |
ta() | |
mv(7) | |
tr() | |
mv(2) | |
tl() | |
mv(5) | |
tr() | |
mv(7) | |
tr() | |
mv(1) | |
tl() | |
mv(1) | |
tl() | |
bs(4) | |
tr() | |
mv(1) | |
tl() | |
mv(3) | |
tl() | |
bs(7) | |
mv(1) | |
} | |
while(1) { | |
rrr() | |
rbr() | |
rsp() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment