boundsOffunction
Returns the SVG view box size for the board.
Every export of every entry point, each with its own page. This page keeps the addresses the old one-page reference had.
@johnmorrisdotca/tobiishi/drawboundsOffunctionReturns the SVG view box size for the board.
drawfunctionA self-contained board drawing; no browser globals and no random SVG ids.
escapeXmlfunctionEscapes text for safe inclusion in XML attributes and content.
MaterialtypeBuilt-in board and peg palettes.
MATERIALSconstantBuilt-in palette names in player-menu order.
pointOffunctionMaps a board cell index to its SVG centre point.
ThemetypeSVG color properties that can be partially overridden by a caller.
THEMESconstantPalette values used by the SVG renderer.
@johnmorrisdotca/tobiishi/playLanguagetypeSupported player interface languages.
mountfunctionMount one independent player.
MountOptionstypeInitial puzzle, display choices, optional settings host, and persistence callback.
PlayertypeControls for reading, replacing, updating presentation or unmounting one player instance.
STRINGSconstantLocalized English and Japanese labels used by the player.
@johnmorrisdotca/tobiishi/elementdefineGamefunctionRegisters the default game or a subclass under a host's tag.
defineTobiishifunctionCompatible registration name, with an optional registry.
TOBIISHI_EMBED_OPTION_KEYSconstantThe native mounted options, checked by the shared builder.
TobiishiElementOptionstypeHost games, witnesses, palettes, external settings and the original persistence callback.
TobiishiGameclassA peg-solitaire element with reflected choices and preserved native player state.
@johnmorrisdotca/tobiishi/element/definedefineGamefunctionRegisters the default game or a subclass under a host's tag.
defineTobiishifunctionCompatible registration name, with an optional registry.
TOBIISHI_EMBED_OPTION_KEYSconstantThe native mounted options, checked by the shared builder.
TobiishiElementOptionstypeHost games, witnesses, palettes, external settings and the original persistence callback.
TobiishiGameclassA peg-solitaire element with reflected choices and preserved native player state.
@johnmorrisdotca/tobiishiBoardtypeImmutable hole lattice and all legal jump triples for a board.
boardOffunctionA familiar lattice or a shaped outline.
CelltypeA hole's stable coordinate within a board shape, independent of its drawing.
ChallengetypeA starting position paired with its complete legal witness and seed.
ChallengeDifficultytypeRequested witness length category; this is not a measured human rating.
challengeOffunctionGenerates a seeded challenge on a built-in shape, optionally fixing its final hole.
ChallengePacktypeCurated goal choices for one supported board shape.
classicEnglishfunctionReturns the classic centre-empty English game with its complete solution.
classicTrianglefunctionReturns the full triangle with the apex empty and any final hole accepted.
GametypeImmutable peg position, target, move history, and assistance marker.
gameCodefunctionVersioned save: replay, rather than accepting a claimed final position.
gameFromCodefunctionValidates and replays a versioned save string, returning null if invalid.
generatefunctionGrow backward from one peg.
generateTobiishiChallengefunctionCreates one fixed-goal puzzle with a complete, replayable legal answer.
GoalChallengetypeGenerated puzzle augmented with its pack, goal, and requested length category.
GoalHoletypeNamed goal hole and its localized menu labels.
isGameSolvedfunctionChecks whether one peg remains at the required target, if any.
isGameStuckfunctionChecks whether no legal continuation remains before the goal is reached.
JumptypeA legal solitaire jump from an occupied hole over a peg to an empty hole.
jumpAtfunctionInvalid jumps leave a game unchanged; a valid jump removes exactly one peg.
legalJumpsfunctionLists legal jumps from the current position.
makeBoardfunctionMake a board from holes and a lattice; absent holes cannot be crossed.
markHelpedfunctionMark an assisted run without changing pieces or history.
newGamefunctionCreates a validated immutable position with the given target hole, if any.
pegCountfunctionCounts pegs remaining on the board.
rectangleBoardfunctionCreates a square-lattice rectangle, including supported wide and tall boards.
restartfunctionRestores the original peg arrangement and clears moves and assistance.
seededRandomfunctionCreates a deterministic pseudo-random stream from a text seed.
ShapetypeBuilt-in board outlines supported by the player and challenge packs.
SHAPESconstantBuilt-in shape names in player-menu order.
SolutiontypeBounded search result; limit distinguishes unfinished search from proof.
solvefunctionA bounded depth-first proof search.
SQUARE_STEPSconstantOrthogonal direction steps used by square-lattice boards.
TOBIISHI_CHALLENGE_PACKSconstantNamed challenge pack metadata; each goal is a distinct hole with a legal witness.
TRIANGLE_STEPSconstantSix jump directions used by the triangular lattice.
undofunctionReturns the previous position, or the same game when history is empty.
VERSIONconstantCurrent package API version.