1
0
Fork 0

[node] implement agent automation that visits all shipyards with the starting probe

This commit is contained in:
Julien Dessaux 2024-05-21 00:26:17 +02:00
parent 92ef1e8c2e
commit d77558b8de
Signed by: adyxax
GPG key ID: F92E51B86E07177E
6 changed files with 101 additions and 12 deletions
nodejs/lib

View file

@ -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);
}