Reference · Mazes, arrows and mixed boards
easyFloorAtfunction
What the easy third asks for beyond the least, rising through it so that it climbs: at place place (from 1) of a size, a maze has at
least this many traps, forks and wasted cells, and from the end of the easy third the least. Level 1 asks only for the least; level 86
asks for 3 traps, 5 forks and 8 wasted cells. A place of a size with no easy third, such as the huge ones, passes it without trying.
Import it
import { easyFloorAt } from "@johnmorrisdotca/meikyuu";
Definition
function easyFloorAt(place: number): { traps: number; decisions: number; waste: number; }
Parameters
| Name | Type | Description |
|---|---|---|
place | number | The native numbered level position. |
Returns
{ traps: number; decisions: number; waste: number; }
What the easy third asks for beyond the least, rising through it so that it climbs: at place place (from 1) of a size, a maze has at least this many traps, forks and wasted cells, and from the end of the easy third the least. Level 1 asks only for the least; level 86 asks for 3 traps, 5 forks and 8 wasted cells. A place of a size with no easy third, such as the huge ones, passes it without trying.
Examples
import { easyFloorAt } from "@johnmorrisdotca/meikyuu";
console.log(easyFloorAt(1));{ traps: 2, decisions: 3, waste: 4 }What it prints (run when this page was built)