Play Home Contribute Github Join Us! Discourse Staff Members Github Contribution Guides Team

What is the exact formula for codecombat's `distanceTo` function?

What is it? Because I use the Pythagorean Theorem to calculate the distance, but that doesn’t seem to be what codecombat uses…