Commit b71d22f2 authored by Ahmad Reza Cheraghi's avatar Ahmad Reza Cheraghi
Browse files

deleted old get_distance

parent 7d404474
......@@ -62,13 +62,6 @@ class TriangularGrid(Grid):
def get_dimension_count(self):
return 2
def get_distance(self, start, end):
dx = abs(start[0]-end[0])
dy = abs(start[1]-end[1])
if dx*2 >= dy:
return (dx*2+dy)/2
return dy
def get_center(self):
return 0, 0, 0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment