Reference · Rules, tiles and records
kumimojiPointsfunction
A finished game's leaderboard points (KUMIMOJI_SCORE): ten a tile, and up to as much again for speed.
Import it
import { kumimojiPoints } from "@johnmorrisdotca/kumimoji";
Definition
function kumimojiPoints(givens: string, elapsedMs: number): number
Parameters
| Name | Type | Description |
|---|---|---|
givens | string | The original bag of internal tile codes. |
elapsedMs | number | The elapsed solve time in milliseconds. |
Returns
number
A finished game's leaderboard points (KUMIMOJI_SCORE): ten a tile, and up to as much again for speed.
Examples
import { kumimojiPoints } from "@johnmorrisdotca/kumimoji";
console.log(kumimojiPoints("cat",12000));56What it prints (run when this page was built)