Skip to the content

Kotoba言葉

Load only the word lists you need, mark repeated letters correctly and play a daily or seeded word game.

Kotoba is the Japanese word for words. About the name

Contents

Reference · Marking, scores and game rules

foundBonusfunction

Finding the word: 10 for every place of every guess the board gives, so it grows with the board.

Import it

import { foundBonus } from "@johnmorrisdotca/kotoba";

Definition

function foundBonus(size: number, rows: number): number

Parameters

NameTypeDescription
sizenumber

The number of letters or kana in each word.

rowsnumber

The number of guesses the game permits.

Returns

number

Finding the word: 10 for every place of every guess the board gives, so it grows with the board.

Examples

import { foundBonus } from "@johnmorrisdotca/kotoba";

console.log(foundBonus(5,6));
300

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kotoba 1.2.0.