STAR_POINTSconstant
Hoshi (star point) positions drawn on the board, by board size: the four corner points, plus tengen at the centre, and for 19×19 the side points too.
Import it
import { STAR_POINTS } from "@johnmorrisdotca/narabe";
Definition
const STAR_POINTS: Record<number, readonly Point[]> = {
9: starGrid([2, 4, 6], [2, 6]),
13: starGrid([3, 6, 9], [3, 9]),
15: starGrid([3, 7, 11], [3, 11]),
19: starGrid([3, 9, 15], [3, 9, 15]),
}
Examples
import { STAR_POINTS } from "@johnmorrisdotca/narabe";
console.log(STAR_POINTS);{
'9': [
{ row: 2, col: 2 },
{ row: 2, col: 6 },
{ row: 4, col: 4 },
{ row: 6, col: 2 },
{ row: 6, col: 6 }
],
'13': [
{ row: 3, col: 3 },
{ row: 3, col: 9 },
{ row: 6, col: 6 },
{ row: 9, col: 3 },
{ row: 9, col: 9 }
],
'15': [
{ row: 3, col: 3 },
{ row: 3, col: 11 },
{ row: 7, col: 7 },
{ row: 11, col: 3 },
{ row: 11, col: 11 }
],
'19': [
{ row: 3, col: 3 },
{ row: 3, col: 9 },
{ row: 3, col: 15 },
{ row: 9, col: 3 },
{ row: 9, col: 9 },
{ row: 9, col: 15 },
{ row: 15, col: 3 },
{ row: 15, col: 9 },
{ row: 15, col: 15 }
]
}What it prints (run when this page was built)