Reference · Marking, scores and game rules
shiritoriReadingContinuesfunction
Whether a word starts on the kana the chain has reached.
Import it
import { shiritoriReadingContinues } from "@johnmorrisdotca/kotoba";
Definition
function shiritoriReadingContinues(reading: string, chainKey: string, rules?: ShiritoriRules): boolean
Parameters
| Name | Type | Description |
|---|---|---|
reading | string | The reading of the word. |
chainKey | string | The last word's tail key. |
rules (optional) | ShiritoriRules | House rules; the forgiving ones if left out. |
Returns
boolean
Whether the word continues the chain, wherever it then leads.
Examples
import { shiritoriReadingContinues } from "@johnmorrisdotca/kotoba";
console.log(shiritoriReadingContinues("らくだ", "ら"));trueWhat it prints (run when this page was built)