diff options
author | Julien Dessaux | 2024-05-21 00:26:17 +0200 |
---|---|---|
committer | Julien Dessaux | 2024-05-21 00:26:17 +0200 |
commit | d77558b8def94fd1e1efecc3cfebb7dd3b6d6ae3 (patch) | |
tree | ec1c660af2badb2df4e407d81e16a5a297b4773d /nodejs/lib/utils.ts | |
parent | Fixed pathing function for probes (diff) | |
download | spacetraders-d77558b8def94fd1e1efecc3cfebb7dd3b6d6ae3.tar.gz spacetraders-d77558b8def94fd1e1efecc3cfebb7dd3b6d6ae3.tar.bz2 spacetraders-d77558b8def94fd1e1efecc3cfebb7dd3b6d6ae3.zip |
[node] implement agent automation that visits all shipyards with the starting probe
Diffstat (limited to 'nodejs/lib/utils.ts')
-rw-r--r-- | nodejs/lib/utils.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |