Skip to the content

Houseki宝石

Run five native gem and stone engines, play measured challenges and lessons, and save deterministic games.

Houseki (宝石) is Japanese for a gem or precious stone. About the name

Contents

Reference · Colour Chains

queueInputEdgefunction

Queues a one-shot rotation, drop, Place, pause or resume edge for the next logical tick.

Import it

import { queueInputEdge } from "@johnmorrisdotca/houseki/colour-chains";

Definition

function queueInputEdge(state: InputSchedulerState, action: EdgeAction): InputSchedulerState

Parameters

NameTypeDescription
stateInputSchedulerState

The immutable native state to read or transition; the input is retained.

actionEdgeAction

One native action for this entry point; inspect accepted and reason on the result.

Returns

InputSchedulerState

Queues a one-shot rotation, drop, Place, pause or resume edge for the next logical tick.

Examples

import { createInputScheduler, queueInputEdge } from "@johnmorrisdotca/houseki/colour-chains";

const input=createInputScheduler();
console.log(queueInputEdge(input,{kind:"hard-drop"}));
{ held: {}, queued: [ { kind: 'hard-drop' } ] }

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/houseki 0.4.2.