From c33e1e04b8f0c139f0bc8d40a6e617cc4200efa1 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Thu, 17 Sep 2020 03:11:08 -0600 Subject: [PATCH] Adjust find sand algo --- utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.py b/utils.py index df4343b..0f4d547 100644 --- a/utils.py +++ b/utils.py @@ -22,7 +22,7 @@ def phyp_bias(p1, p2, origin): origin_distance = phyp(origin, p2) height_diff = p2[1] - p1[1] height_diff = height_diff*8 if height_diff < 0 else height_diff*0.5 - return hypot(p1[0] - p2[0], height_diff, p1[2] - p2[2]) + origin_distance*1.5 + return hypot(p1[0] - p2[0], height_diff, p1[2] - p2[2]) + origin_distance*0.5 def pint(p): return (floor(p[0]), floor(p[1]), floor(p[2]))