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 · Falling Triplets

queueInputEdgefunction

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

Import it

import { queueInputEdge } from "@johnmorrisdotca/houseki/falling-triplets";

Definition

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

Parameters

NameTypeDescription
stateInputSchedulerState

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

actionAction

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

Returns

InputSchedulerState

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

Examples

import { createInputScheduler, queueInputEdge } from "@johnmorrisdotca/houseki/falling-triplets";

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.