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

View file

@ -1,17 +1,23 @@
import * as autoContracting from './automation/contracting.ts';
import * as autoAgent from './automation/agent.ts';
//import * as autoExploring from './automation/exploration.ts';
import * as autoInit from './automation/init.ts';
import { getAgent } from './lib/agent.ts';
import { getShips } from './lib/ships.ts';
import { debugLog, send } from './lib/api.ts';
import { debugLog } from './lib/api.ts';
//debugLog(await send({endpoint: '/'}));
await autoInit.init();
debugLog(getAgent());
debugLog(await getAgent().purchaseShip());
await autoAgent.run();
//const ships = getShips();
//await autoContracting.run(ships[0]); // dedicate the command ship to running contracts
//autoExploring.init();
//import { market, trait } from './lib/systems.ts';
//const ws = await trait(ships[0].nav.systemSymbol, 'SHIPYARD');
//debugLog(ws);
//for (let w of ws) {
// debugLog(await market(w));
//}
//
//await ships[0].navigate(await waypoint('X1-GR47-I59'));