The tests don’t check for the ball’s direction or hue changing directions. The following code passes the tests.
let x = 5
let y = 5
let hue = 100
repeat(200) {
circle(x, y, 10, hsl(hue, 80, 50))
x = x + 2
y = y + 1
hue = hue + 1
}
The tests don’t check for the ball’s direction or hue changing directions. The following code passes the tests.
let x = 5
let y = 5
let hue = 100
repeat(200) {
circle(x, y, 10, hsl(hue, 80, 50))
x = x + 2
y = y + 1
hue = hue + 1
}
The “Functions” section of the instructions does not include Math.randomInt(min, max)
I drew 50 circles and passed the “1000 circles” test. This isn’t checking the number of circles nor the 80% coverage.
All done. Thanks! ![]()
2 posts were split to a new topic: Help: rainbow ball