本文へ移動

Kotoba言葉

必要な単語一覧だけを読み込み、重複する文字を正しく判定し、日替わりやシード付きの単語ゲームを遊べます。

「Kotoba」は「言葉」です。 名前について(英語)

目次

リファレンス · 判定・得点・ゲームのルール

KANA_COLUMN定数

リファレンスの説明と例は英語です。見出しと目次は日本語です。

WHAT A KANA WORD SCORES, won or lost, on English's scale (wordScore) so the two boards read alike. A guess's weight is the rows still to come.

  • PLACED: a place first played plain green, 10 × that guess's weight.
  • ELSEWHERE: a kana of the word never placed but found another way — orange, or green with an arrow — 4 × the weight of the guess that first showed it.
  • COLUMN: a place never found either way whose column a yellow once named, 1 × that guess's weight: it says which column, not which kana.
  • FOUND and SPEED: as English — the word 10 a place for every guess the board gives (foundBonus) and 25 a guess left, and up to 50 for a word found inside a minute.

A lost word never had every place plain green in one guess, so it comes to at most 10 × (kana × guesses − 1), and a word found on its last row to more than that (kanaScore.test.ts, at every size and count of guesses). Only a word with no kana and no column found scores 0.

インポート

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

定義

const KANA_COLUMN: 1 = 1

例

import { KANA_COLUMN } from "@johnmorrisdotca/kotoba";
console.log(KANA_COLUMN);
1

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/kotoba 1.2.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。