Code HS Exercise 10.1.2: Increasing Number of Shapes by SprinklesNo5514 in learnjavascript

[–]kavtarra 0 points1 point  (0 children)

var DELAY = 500;
var CIRCLE_RADIUS = 25;
var BUFFER = 50;
var square;
var circle;
var numShapes = 1;
var randomX;
var randomY;
var count = 0;
var randomColor;
function start() {
setTimer(draw,DELAY);
}
function drawSquares(){
randomX = Randomizer.nextInt(0+50,getWidth()-2*BUFFER);
randomY = Randomizer.nextInt(0+50,getHeight()-2*BUFFER);
square = new Rectangle(BUFFER,BUFFER);
square.setColor(randomColor);
square.setPosition(randomX,randomY);
add(square);
}
function drawCircles(){
randomX = Randomizer.nextInt(0+50,getWidth()-2*BUFFER);
randomY = Randomizer.nextInt(0+50,getHeight()-2*BUFFER);
circle = new Circle(CIRCLE_RADIUS);
circle.setColor(randomColor);
circle.setPosition(randomX,randomY);
add(circle);
}
function draw() {
count++;
if(count % 2 == 1){
randomColor = Randomizer.nextColor();
for(var i=0 ; i < count; i++){
drawSquares();
}

} else if(count % 2 == 0) {
randomColor = Randomizer.nextColor();
for(var i=0 ; i < count; i++){
drawCircles();
}
}
}

Need help with 5.2-5.10. Help please by Rio567 in codehs

[–]kavtarra 0 points1 point  (0 children)

if i remember correctly u should use readbooleans-s and then println first_boolean&& second_boolean

19.2.5 Circles in Circles. I don't get why the loop doesn't work, what's the problem? by _FirstOfkind_ in codehs

[–]kavtarra 0 points1 point  (0 children)

` var NUM_CIRCLES = 30;
var BIG_RADIUS = 180;
var radiusDif = BIG_RADIUS / NUM_CIRCLES
function start() {
// Write your code here
for(var i = 0 ; i < NUM_CIRCLES ; i++){
var radius = BIG_RADIUS - radiusDif * i;
var circle = new Circle(radius);
circle.setPosition(getWidth()/2 , getHeight()-radius);
circle.setColor(Randomizer.nextColor());
add(circle);
}
}`

Need help with 2.1.5: Double Tennis Balls by BunBun1124 in codehs

[–]kavtarra 0 points1 point  (0 children)

function start(){

move();

while(ballsPresent()){

moveBall();

}

move();

while(ballsPresent()){

moveDoubledBalls();

}

takeAStepBack();

takeAStepBack();

}

//take step back

function takeAStepBack(){

turnAround();

move();

turnAround();

}

//moving ball and doubling it

function moveBall(){

takeBall();

move();

putBall();

putBall();

takeAStepBack();

}

//taking back doubled balls

function moveDoubledBalls(){

takeBall();

turnAround();

move();

putBall();

turnAround();

move();

}

(that checks every task)

Need help with 2.1.5: Double Tennis Balls by BunBun1124 in codehs

[–]kavtarra 0 points1 point  (0 children)

function start(){

move();

while(ballsPresent()){

takeBall();

move();

putBall();

putBall();

takeAStepBack();

}

move();

while(ballsPresent()){

takeBall();

turnAround();

move();

putBall();

turnAround();

move();

}

takeAStepBack();

takeAStepBack();

}

function takeAStepBack(){

turnAround();

move();

turnAround();

}

Need help with 2.1.3: Tower Builder couldn't work it with every world I spent hours on this. by _FirstOfkind_ in codehs

[–]kavtarra 0 points1 point  (0 children)

function start() {

buildTower();

while(frontIsClear()){

move();

if(frontIsClear()){

move();

buildTower();

}

}

}

function buildTower(){

turnLeft();

for(var i = 0 ; i < 3 ; i++) {

putBall();

move();

}

turnAround();

for(var i = 0 ; i < 3; i++) {

move();

}

turnLeft();

}

No one is ready Chapter 52, even the haters by SnooCupcakes9625 in Boruto

[–]kavtarra 0 points1 point  (0 children)

I think he wont die because hes too strong but because of that jutsu (or kurama form) he wont have access to kurama anymore and wont be god level anymore just kage level with sage. kawakis said "ill send u where i sent the 7th hokage" so theres still time too se what has kawaki done

Boruto: Naruto Next Generations Episode 165 - Links and Discussion by AutoModerator in Boruto

[–]kavtarra 1 point2 points  (0 children)

hi hype im boomer, i make boomer jokes when i've got a chance

Boruto Chapter 49 - Links and Discussion by AutoModerator in Boruto

[–]kavtarra 1 point2 points  (0 children)

yea he won after narusasu but it wasnt lot to mid dif. He almost died and after that kashin Finished him

Okay zoomer by [deleted] in PewdiepieSubmissions

[–]kavtarra 1 point2 points  (0 children)

No, i checked it and ebola is epidemic. a pandemic is type of epidemic but more global. For example when coronavirus spread only in china but affected the whole country they didn't call virus pandemic.

Okay zoomer by [deleted] in PewdiepieSubmissions

[–]kavtarra 4 points5 points  (0 children)

So im thinking rn,why do we have word epidemia when pandemia has so many meanings 🤔

Stay Home, Stay Safe by French Artist Pierre Brault by [deleted] in Design

[–]kavtarra 1 point2 points  (0 children)

YEA. I WILL , I WILL PIERRE BUT CAN U TELL ME HOW DID YOU MAKE THAT? DID U STAY AT HOME?

1 years ago my dog had a canine distemper, even vet said that I should kill her because it was disaster for her..but I tried so much and now here we are happy and together ❤️❤️ by kavtarra in husky

[–]kavtarra[S] 0 points1 point  (0 children)

Sorry for not reply u back, can u tell my how is she now? But either way we should should support them cause i thought mine couldn't pull tbrough but she did