Skip to the content

Kumimoji組み文字

Build crosswords from seeded English or Japanese tile bags, alone or at a shared table.

Kumimoji means assembled characters in Japanese. About the name

Contents

Reference · Rules, tiles and records

ComputerSteptype

One step of a computer's turn: the game after it, and what it did. The last step's game is the one kept.

Import it

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

Definition

type ComputerStep = {
    game: PartyGame;
    said: ComputerSaid;
};

Members

NameTypeDescription
gamePartyGame
saidComputerSaid

Examples

import { startParty } from "@johnmorrisdotca/kumimoji";
import type { ComputerStep } 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: ComputerStep = {game,said:{kind:"drew"}};
console.log(value);
{
  game: {
    settings: {
      size: 3,
      level: 'hard',
      seed: 44,
      gameLength: 'short',
      language: 'english',
      doubleSet: false,
      diagonals: false,
      hints: false
    },
    bag: 'catdogsun',
    returned: '',
    taken: 6,
    players: [ [Object], [Object] ],
    dealt: 2,
    turn: 0,
    turns: 0,
    out: [],
    lastTurns: null,
    resigned: [],
    resignRun: [],
    ending: null,
    startTable: '',
    traded: false,
    passedBy: null
  },
  said: { kind: 'drew' }
}

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kumimoji 1.6.0.