Returns the distance between (x1, y1) and (x2, y2) by using the Pythagorean Theorem.
(x1, y1, x2, y2)
| 63 | |
| 64 | |
| 65 | def getDistance(x1, y1, x2, y2): |
| 66 | """Returns the distance between (x1, y1) and (x2, y2) by using the |
| 67 | Pythagorean Theorem.""" |
| 68 | return math.sqrt(((x1 - x2) ** 2) + ((y1 - y2) ** 2)) |
| 69 | |
| 70 | |
| 71 | def displayClue(playerx, playery, catx, caty): |
no outgoing calls
no test coverage detected