WIN_REASONSconstant
The recorded reasons a game is won.
Import it
import { WIN_REASONS } from "@johnmorrisdotca/narabe";
Definition
const WIN_REASONS: { readonly line: "line"; readonly captures: "captures"; readonly time: "time"; readonly resign: "resign"; readonly trap: "trap"; readonly square: "square"; readonly full: "full"; readonly count: "count"; readonly camp: "camp"; readonly connection: "connection"; readonly blocked: "blocked"; readonly territory: "territory"; } = {
line: "line",
captures: "captures",
time: "time",
resign: "resign",
trap: "trap",
square: "square",
full: "full",
count: "count",
camp: "camp",
connection: "connection",
blocked: "blocked",
territory: "territory",
} as const satisfies Record<WinReason, WinReason>
Members
| Name | Type | Description |
|---|---|---|
line | "line" | |
captures | "captures" | |
time | "time" | |
resign | "resign" | |
trap | "trap" | |
square | "square" | |
full | "full" | |
count | "count" | |
camp | "camp" | |
connection | "connection" | |
blocked | "blocked" | |
territory | "territory" |
Examples
import { WIN_REASONS } from "@johnmorrisdotca/narabe";
console.log(WIN_REASONS);{
line: 'line',
captures: 'captures',
time: 'time',
resign: 'resign',
trap: 'trap',
square: 'square',
full: 'full',
count: 'count',
camp: 'camp',
connection: 'connection',
blocked: 'blocked',
territory: 'territory'
}What it prints (run when this page was built)