Reference · Rockets, variants, parts and the fit check
berthRingfunction
A ring of berths around the parts stack, used when nothing is being carried.
Import it
import { berthRing } from "@johnmorrisdotca/uchusen-rockets";
Definition
function berthRing(count: number, dock: readonly [number, number, number]): [number, number, number][]
Parameters
| Name | Type | Description |
|---|---|---|
count | number | How many drones. |
dock | readonly [number, number, number] | The parts stack. |
Returns
[number, number, number][]
One point per drone.
Examples
import { berthRing } from "@johnmorrisdotca/uchusen-rockets";
console.log(berthRing(6, [40, 0, 0]).length);6What it prints (run when this page was built)