spacetraders-v1 v0.18
Strategy switching
Implemented dynamic strategy switching for ships. Ships can now change between trade and halt strategies at runtime without needing to restart. Created an updateStrategy module that handles the transition logic between machine states.
Refactored the strategy UI into its own folder with separate components: StrategyToggle for the toggle switch, SingleShipStrategy for per-ship controls, and a main Strategy index component that ties it together. The toggle provides a clean interface for switching ship behaviors.
Both the tradeMachine and haltMachine now listen for strategy change events and can transition to the appropriate state. The player machine coordinates these changes by sending events to the ship actors when strategies are updated in the database.
More spacetraders-v1
My first implementation against the spacetraders api is an entirely browser-based UI and automation tool · source · play spacetraders-v1 · spacetraders api · posts