Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren0
Why?
How to make the blue block move in the direction of the red one. That is, to follow the red one. I can't solve this problem. https://code.sololearn.com/WltfgxBli2yy/?ref=app
4 Antworten
+ 8
U mean this?
https://code.sololearn.com/WGL6KqxNPxQS/?ref=app
+ 4
if(blue.distance > red.distance) {
blue.distance -= blue.speed
}
if(blue.distance < red.distance) {
blue.distance += blue.speed
}
+ 1
Who will be able to solve this riddle of the 21st century?
+ 1
@frogged Yes, but how?