Railhead deliver: Deliver Coal to Chonnbridge Power Station
harbor run -t rachittshah/railhead-deliver-dev-fed868harbor download rachittshah/railhead-deliver-dev-fed868You run a young transport company. A customer needs Coal delivered to Chonnbridge Power Station (industry id 1, near tile 71,25).
A likely supplier is Preningbury Coal Mine (industry id 0, near tile 43,12); any source counts, only what your company delivers to that industry is counted.
Contract: deliver at least 370 units within the horizon.
If you conclude the contract cannot be met by anyone, say so with rh abstain reason="..."; abstaining on a feasible contract scores zero.
The reward is the fraction of the contract delivered (capped at 1), measured by the engine.
rh submit) the world runs 0 more days without you before scoring.You control one transport company in a running OpenTTD world. Everything goes through the rh
command (already on PATH). The world is frozen except when you rh wait, so think as long as you
like. Tiles are written x,y.
rh status # dashboard: date, money, objective progress, alerts
rh brief # this task's objective, horizon and budgets (JSON)
rh help # every command
rh industries | rh towns # where cargo is produced / accepted, where people live
rh map x=0 y=0 w=40 h=24 # ASCII map of a region (legend included)
rh tile tile=12,40 # one tile in detail, incl. cargo acceptance around it
rh engines vtype=road # vehicles you can buy, with capacity / speed / cost
rh road line from_tile=10,4 to_tile=30,4 # build like a human player: drag a road
rh road depot tile=12,5 front_tile=12,4
rh road stop tile=20,4 front_tile=21,4 kind=truck
rh vehicle buy depot_tile=12,5 engine=116 cargo=1
rh order append vehicle=3 tile=20,4 flags='["full_load"]'
rh vehicle start vehicle=3
rh wait days=30 until=vehicle_crashed,cash_below:10000 # time passes only here
rh fork create name=try1 # a sandbox copy of the world (shows *a* possible future)
rh fork do name=try1 m=road_line from_tile=10,4 to_tile=30,4
rh fork wait name=try1 days=90 # costs imagination budget (fork-days)
rh fork drop name=try1
rh submit confirm=yes # optional: you are done; the world keeps running without you
Any build command accepts dry_run=true to get its cost without doing it. Errors name a likely fix.
rh does not count.