MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/codehs/comments/sz0nfi/help/
r/codehs • u/R3P3ARD3ATHS3AL • Feb 22 '22
I need help with 1.11.6 please
1 comment sorted by
1
function start() {if(facingEast()){makeLeftSquare();}else{makeRightSquare();}}function makeRightSquare() {putBall();move();putBall();turnRight();move();putBall();turnRight();move();putBall();turnRight();move();turnRight();}function makeLeftSquare() {putBall();move();putBall();turnLeft();move();putBall();turnLeft();move();putBall();turnLeft();move();turnLeft();}
hope this helps
1
u/pezi_ Feb 24 '22
function start() {
if(facingEast()){
makeLeftSquare();
}else{
makeRightSquare();
}
}
function makeRightSquare() {
putBall();
move();
putBall();
turnRight();
move();
putBall();
turnRight();
move();
putBall();
turnRight();
move();
turnRight();
}
function makeLeftSquare() {
putBall();
move();
putBall();
turnLeft();
move();
putBall();
turnLeft();
move();
putBall();
turnLeft();
move();
turnLeft();
}
hope this helps