[node] implement agent automation that visits all shipyards with the starting probe
This commit is contained in:
parent
92ef1e8c2e
commit
d77558b8de
6 changed files with 101 additions and 12 deletions
nodejs/lib
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue