From d77558b8def94fd1e1efecc3cfebb7dd3b6d6ae3 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Tue, 21 May 2024 00:26:17 +0200 Subject: [node] implement agent automation that visits all shipyards with the starting probe --- nodejs/lib/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nodejs/lib/utils.ts') diff --git a/nodejs/lib/utils.ts b/nodejs/lib/utils.ts index 24aa3b4..6d051ea 100644 --- a/nodejs/lib/utils.ts +++ b/nodejs/lib/utils.ts @@ -40,7 +40,7 @@ export function distance(a: Point, b: Point) { return Math.sqrt((a.x-b.x)**2 + (a.y-b.y)**2); } -export function isThereAShipAtThisWaypoint(waypoint: Waypoint): boolean { +export function is_there_a_ship_at_this_waypoint(waypoint: Waypoint): boolean { return getShips().some(s => s.nav.waypointSymbol === waypoint.symbol); } -- cgit v1.2.3