MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/codehs/comments/wu93l6/hi_need_help_with_this_new_assignment_what_are_we/
r/codehs • u/bigdog10011 • Aug 21 '22
10 comments sorted by
1
We got it, intro to Java and we had to move the dog
What does it want you to do?
Reminds me of a day in September, something 20 years ago…
function start(){move();buildtower();turnRight();move();godown();move();buildtower();turnRight();}function buildtower(){putBall();turnLeft();move();putBall();move();putBall();move();}function turnRight(){turnLeft();turnLeft();turnLeft();}function godown(){turnRight();move();move();move();turnLeft();}function move2(){move();move();}
make a function where u make a tower by going up and down and just repeat for everything else
[removed] — view removed comment
1 u/bigdog10011 Aug 22 '22 Thanks, what is the precondition and postcondition coding for? 1 u/dontevenfkingtry Aug 22 '22 It's not part of the code, the precon and postcon are comments (it's just how I was taught to write them). 2 u/RogueFox771 Aug 22 '22 Use markdown formatting to make your code readable for Reddit in the future :) 1 u/dontevenfkingtry Aug 22 '22 Thanks!
Thanks, what is the precondition and postcondition coding for?
1 u/dontevenfkingtry Aug 22 '22 It's not part of the code, the precon and postcon are comments (it's just how I was taught to write them).
It's not part of the code, the precon and postcon are comments (it's just how I was taught to write them).
2
Use markdown formatting to make your code readable for Reddit in the future :)
1 u/dontevenfkingtry Aug 22 '22 Thanks!
Thanks!
1
u/bigdog10011 Aug 22 '22
We got it, intro to Java and we had to move the dog
1
u/IWasProbablyAMistake Aug 22 '22
What does it want you to do?
1
u/Dry_Star_5317 Aug 22 '22
Reminds me of a day in September, something 20 years ago…
1
u/Azumariki2354 Sep 24 '22
function start(){
move();
buildtower();
turnRight();
move();
godown();
move();
buildtower();
turnRight();
}
function buildtower(){
putBall();
turnLeft();
move();
putBall();
move();
putBall();
move();
}
function turnRight(){
turnLeft();
turnLeft();
turnLeft();
}
function godown(){
turnRight();
move();
move();
move();
turnLeft();
}
function move2(){
move();
move();
}
1
u/simmulatori Sep 24 '22
make a function where u make a tower by going up and down and just repeat for everything else
1
u/[deleted] Aug 22 '22
[removed] — view removed comment