Reference · Mazes, arrows and mixed boards
ArrowRecipetype
Everything that makes an arrow puzzle.
Import it
import type { ArrowRecipe } from "@johnmorrisdotca/meikyuu";
Definition
type ArrowRecipe = {
readonly shape: ArrowShape;
readonly w: number;
readonly h: number;
readonly longest: number;
readonly seed: number;
readonly locks?: number;
};
Members
| Name | Type | Description |
|---|---|---|
shape | "square" | "heart" | "leaf" | "star" | "ring" | "diamond" | "cross" | "moon" | |
w | number | Columns and rows of the board: the same for every shape but |
h | number | |
longest | number | The most cells an arrow may have. |
seed | number | |
locks (optional) | number | undefined | How many arrows are locked until they are unlocked (the mixed puzzles). |
Examples
import type { ArrowRecipe } from "@johnmorrisdotca/meikyuu";
const arrowRecipe: ArrowRecipe = {shape:"square",w:5,h:5,longest:3,seed:42};
const value: ArrowRecipe = arrowRecipe;
console.log(value);{ shape: 'square', w: 5, h: 5, longest: 3, seed: 42 }What it prints (run when this page was built)