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
| Name | Type | Description |
|---|---|---|
size | number | The number of letters or kana in each word. |
rows | number | 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));300What it prints (run when this page was built)