Reference · Journey mode: transfers, launch windows and flip-and-burn trips
Verdicttype
What a craft can do on a trip, in one plain line, with the lines behind it.
Import it
import type { Verdict } from "@johnmorrisdotca/uchusen-rockets/journey";
Definition
interface Verdict {
level: VerdictLevel;
line: string;
because: string[];
playable: boolean;
}
Members
| Name | Type | Description |
|---|---|---|
level | VerdictLevel | |
line | string | The one line shown beside the picker. |
because | string[] | More lines, each a fact the verdict rests on. |
playable | boolean | Whether Play is offered. |
Examples
import type { Verdict } from "@johnmorrisdotca/uchusen-rockets/journey";
const verdict: Verdict = { level: "cannot", line: "Not enough fuel.", because: [], playable: false };
console.log(verdict.line, verdict.playable);Not enough fuel. falseWhat it prints (run when this page was built)