summaryrefslogtreecommitdiff
path: root/golang/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'golang/cmd')
-rw-r--r--golang/cmd/spacetraders/main.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/golang/cmd/spacetraders/main.go b/golang/cmd/spacetraders/main.go
index 5a4dc4a..42d43a6 100644
--- a/golang/cmd/spacetraders/main.go
+++ b/golang/cmd/spacetraders/main.go
@@ -82,5 +82,11 @@ func run(
// ----- Update agent ------------------------------------------------------
agent, err := client.MyAgent()
slog.Info("agent", "agent", agent, "err", err)
+ // ----- Get ships ---------------------------------------------------------
+ ships, err := client.MyShips()
+ err = client.Dock(&ships[0])
+ slog.Info("dock", "ship", ships[0], "err", err)
+ err = client.Orbit(&ships[0])
+ slog.Info("orbit", "ship", ships[0], "err", err)
return nil
}