MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/codehs/comments/16bxloo/stuck_on_2134_random_hurdles/ncausrs/?context=3
r/codehs • u/UrBestBudWasTaken • Sep 06 '23
I have been stuck for hours, I don't even know where to start.
9 comments sorted by
View all comments
Show parent comment
1
function start(){
for (var i=0; i<13; i++) {
if (frontIsBlocked()) {
jumpHurdle();
} else {
move();
}
function jumpHurdle(){
turnLeft();
move():
turnRight();
its another way i learned how to do it bc my teachers wouldnt help men. hopes this helps someone in problably 7 years from now T-T
1 u/P0CCO0 Oct 17 '25 it hasn’t been seven years, but you did save meily 1 u/skibidisigmarizzzz Jan 30 '26 8 years and he saved me
it hasn’t been seven years, but you did save me
ily
1 u/skibidisigmarizzzz Jan 30 '26 8 years and he saved me
8 years and he saved me
View all comments
Show parent comment
1
u/StorageOk7495 Sep 04 '25
function start(){
for (var i=0; i<13; i++) {
if (frontIsBlocked()) {
jumpHurdle();
} else {
move();
}
}
}
function jumpHurdle(){
turnLeft();
move():
turnRight();
move();
turnRight();
move();
turnLeft();
}
its another way i learned how to do it bc my teachers wouldnt help men. hopes this helps someone in problably 7 years from now T-T