16
Vladimir Levochkin
Last seen 1 year ago
Member for 2 years, 7 months, 10 days
Difficulty Advanced
from sympy.geometry import *
def similar_triangles(coords_1: Coords, coords_2: Coords) -> bool:
return Triangle(coords_1[0], coords_1[1], coords_1[2]).is_similar(Triangle(coords_2[0], coords_2[1], coords_2[2]))
More
Hello, I studied your solution, it is quite interesting. My solution is longer.
More
It seems more elegant to me to add a method "hit"
def hit(self, other):
other.health -= self.attack
More