本文へ移動

Kumimoji組み文字

シードから配った英字やかなのタイルで、ひとりでも複数人の卓でも、単語を組み合わせて遊べます。

「組み文字」は文字を組み合わせることを表す言葉です。 名前について(英語)

目次

リファレンス · ルール・タイル・記録

PartyGame型

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

A PASS-AND-PLAY KUMIMOJI: one bag, read as a line the way the solo game reads it (TilePlay), and a hand and a table for each player.

インポート

import type { PartyGame } from "@johnmorrisdotca/kumimoji";

定義

type PartyGame = {
    settings: PartySettings;
    bag: string;
    returned: string;
    taken: number;
    players: readonly PartyPlayer[];
    dealt: number;
    turn: number;
    turns: number;
    out: readonly number[];
    lastTurns: readonly number[] | null;
    resigned: readonly number[];
    resignRun: readonly number[];
    ending: PartyEnding | null;
    startTable: string;
    traded: boolean;
    passedBy: number | null;
};

メンバー

名前型説明
settingsPartySettings
bagstring

The tiles in the order they come out.

returnedstring

Tiles traded back, in order; they come out after the bag.

takennumber

How many tiles have been taken from bag + returned, by every player together.

playersreadonly PartyPlayer[]

Up to eight; two to eight when dealt, and one or more after players leave (partySeats.ts).

dealtnumber

How many the game was dealt to: the address's own players, which a kept game is matched to, however many have joined or left since.

turnnumber

Whose turn it is, by place in players.

turnsnumber

How many turns have been ended, and seats left: a turn's own number, so each one opens on a fresh view.

outreadonly number[]

The players who went out, in the order they did; the first is the one who began the last round.

lastTurnsreadonly number[] | null

THE LAST ROUND: null until somebody goes out, then the players still to take their one last turn, in order. John, 2026-09-28: "once one person goes out the remaining players get one last move. That should make it fair."

resignedreadonly number[]

The players who resigned, in the order they did: their turns are passed over from then on.

resignRunreadonly number[]

The resignations since a player still in last pressed Done: who is tied if nobody is left standing.

endingPartyEnding | null

How the game ended (PartyEnding), or null while it is played.

startTablestring

The tiles on the table of the player whose turn it is when the turn began, in order (tableTally): whether they have laid anything since.

tradedboolean

Whether the player whose turn it is has traded this turn.

passedBynumber | null

Who played the turn before this one — pressed Done or resigned — or null before anybody has: whose table the pass screen opens on.

例

import { startParty } from "@johnmorrisdotca/kumimoji";
import type { PartyGame } from "@johnmorrisdotca/kumimoji";

const settings = {size:3,level:"hard",seed:44,gameLength:"short",language:"english",doubleSet:false,diagonals:false,hints:false} as const;
const bag = "catdogsun";
const game = startParty(settings,bag,["Seat 1","Seat 2"]);
const value: PartyGame = game;
console.log(value);
{
  settings: {
    size: 3,
    level: 'hard',
    seed: 44,
    gameLength: 'short',
    language: 'english',
    doubleSet: false,
    diagonals: false,
    hints: false
  },
  bag: 'catdogsun',
  returned: '',
  taken: 6,
  players: [
    { name: 'Seat 1', hand: [Array], tiles: Map(0) {} },
    { name: 'Seat 2', hand: [Array], tiles: Map(0) {} }
  ],
  dealt: 2,
  turn: 0,
  turns: 0,
  out: [],
  lastTurns: null,
  resigned: [],
  resignRun: [],
  ending: null,
  startTable: '',
  traded: false,
  passedBy: null
}

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

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

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