[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
|
@ -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'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue