doubletwelve 0.1.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai/candidate-generator.d.ts +29 -0
- package/dist/ai/create-ai-player.d.ts +14 -0
- package/dist/ai/heuristics.d.ts +13 -0
- package/dist/ai/index.d.ts +12 -0
- package/dist/ai/policy.d.ts +65 -0
- package/dist/ai/search.d.ts +43 -0
- package/dist/ai/skill-profiles.d.ts +16 -0
- package/dist/ai/test-fixtures.d.ts +9 -0
- package/dist/ai/types.d.ts +84 -0
- package/dist/app/DefaultPip.d.ts +9 -0
- package/dist/app/DominoHub.d.ts +8 -0
- package/dist/app/DominoThemeContext.d.ts +8 -0
- package/dist/app/DoubleTwelve.d.ts +3 -0
- package/dist/app/Pip.d.ts +4 -11
- package/dist/app/Viewport.d.ts +27 -0
- package/dist/app/dominoTheme.d.ts +39 -0
- package/dist/app/trainBends.d.ts +77 -0
- package/dist/app/trainLayout.d.ts +42 -3
- package/dist/app/viewportMath.d.ts +28 -0
- package/dist/game/TrainData.d.ts +23 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +17 -3
- package/dist/index.js +1414 -697
- package/dist/index.js.map +1 -1
- package/package.json +5 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,24 +1,38 @@
|
|
|
1
1
|
export { DoubleTwelve } from './app/DoubleTwelve';
|
|
2
2
|
export type { DoubleTwelveProps } from './app/DoubleTwelve';
|
|
3
3
|
export { MexicanTrainGame } from './app/MexicanTrainGame';
|
|
4
|
-
export { DominoHub } from './app/DominoHub';
|
|
4
|
+
export { DominoHub, hubTrainStartDistance } from './app/DominoHub';
|
|
5
5
|
export { DominoTrain } from './app/DominoTrain';
|
|
6
|
+
export { DominoThemeProvider, useDominoTheme } from './app/DominoThemeContext';
|
|
7
|
+
export type { DominoThemeProviderProps } from './app/DominoThemeContext';
|
|
8
|
+
export { DefaultPip } from './app/DefaultPip';
|
|
9
|
+
export { DEFAULT_DOMINO_THEME, mergeDominoTheme, themeDataAttributes, } from './app/dominoTheme';
|
|
10
|
+
export type { DominoTheme, PipRenderContext, TileRenderContext, } from './app/dominoTheme';
|
|
6
11
|
export { DEFAULT_PIP_COLORS, PIP_COLORS, mergePipColors, resolvePipStyle, getPipStyle, } from './app/pipColors';
|
|
7
12
|
export type { PipColorMap, PipColorStyle } from './app/pipColors';
|
|
8
13
|
export { PIP_LAYOUTS, getPipLayout } from './app/pipLayouts';
|
|
9
14
|
export { resolvePipPosition } from './app/pipGrid';
|
|
10
15
|
export type { PipGridSize, PipLayoutCell } from './app/pipGrid';
|
|
11
|
-
export { computeTrainLayout, computeTrainTree, flattenSegments, stepAlongTrain, outwardPerpSign, getTrainLayoutBounds, tileCorners, tilesOverlap, CHICKEN_FOOT_TOE_ANGLES, } from './app/trainLayout';
|
|
16
|
+
export { computeTrainLayout, computeTrainTree, flattenSegments, stepAlongTrain, outwardPerpSign, getTrainLayoutBounds, tileCorners, tilesOverlap, layoutsCollide, layoutSelfIntersects, normalizeBends, headingAtIndex, CHICKEN_FOOT_TOE_ANGLES, } from './app/trainLayout';
|
|
12
17
|
export type { TrainLayoutBounds } from './app/trainLayout';
|
|
13
18
|
export type { TrainLayoutEntry, TrainLayoutStyle, TrainSegment, ComputeTrainLayoutInput, ComputeTrainTreeInput, } from './app/trainLayout';
|
|
19
|
+
export { TURN_DEGREES, sideToTurn, oppositeSide, offsetDefaultSide, linearDefaultSide, buildBranchTiles, withBendAt, resolveBend, cycleBendAt, } from './app/trainBends';
|
|
20
|
+
export type { TurnSide, TableBounds, BuildTrainTilesInput, ResolveBendInput, ResolveBendResult, } from './app/trainBends';
|
|
21
|
+
export { Viewport } from './app/Viewport';
|
|
22
|
+
export type { ViewportProps } from './app/Viewport';
|
|
23
|
+
export { clampScale, zoomAt, fitToBounds, screenToContent, } from './app/viewportMath';
|
|
24
|
+
export type { ViewportTransform, Size as ViewportSize, Point as ViewportPoint, } from './app/viewportMath';
|
|
14
25
|
export { validateTrainLayout, validateTrainTree, validateChickenFootChain, } from './harness/layoutValidation';
|
|
15
26
|
export type { LayoutValidationResult } from './harness/layoutValidation';
|
|
16
27
|
export { TRAIN_FIXTURES, CHICKEN_FOOT_FIXTURES } from './harness/trainFixtures';
|
|
17
28
|
export type { GameState } from './game/GameState';
|
|
18
|
-
export type { TrainData, TrainBranch } from './game/TrainData';
|
|
29
|
+
export type { TrainData, TrainBranch, TrainBend } from './game/TrainData';
|
|
19
30
|
export type { DominoValue } from './game/DominoValue';
|
|
31
|
+
export { generateSampleTrains, type GenerateSampleTrainsOptions, } from './game/generateSampleTrains';
|
|
20
32
|
export { tileKey, dominoKey, isDouble, tileHasValue, otherEnd, orientForConnection, generateDominoSet, dominoSetSize, } from './rules/dominoSet';
|
|
21
33
|
export { DEFAULT_RULES, resolveRules, requiredDoubleAnswers, sideToeSlots, } from './rules/rulesConfig';
|
|
22
34
|
export type { RulesConfig, ChickenFootConfig, DoubleObligation, } from './rules/rulesConfig';
|
|
23
35
|
export { getOpenEnds, getUnsatisfiedDoubles, getBranchAt, collectPlayedKeys, evaluatePlacement, getLegalMoves, applyMove, playMove, } from './rules/placement';
|
|
24
36
|
export type { OpenEnd, Move, BranchPath, PlacementResult, PlacementViolation, PlayMoveResult, } from './rules/placement';
|
|
37
|
+
export type { Rng, AiActionBase, AiPlayAction, AiDrawAction, AiPassAction, AiAction, AiObservation, EvalContext, Heuristic, SkillProfile, SkillLevel, CandidateGenerator, CandidateGeneratorOptions, AiPlayer, CreateAiPlayerOptions, GenericHeuristic, PolicyPlayer, PolicyPlayerConfig, PlayerRef, SearchModel, SearchOptions, ScoredAction, } from './ai';
|
|
38
|
+
export { isPlayAction, getAccessibleTrainIndices, collectAllPlayedKeys, generatePlayActions, createCandidateGenerator, defaultCandidateGenerator, HEURISTIC_IDS, DEFAULT_HEURISTICS, SKILL_PRESETS, getSkillProfile, createAiPlayer, scoreWithHeuristics, argmaxIndex, softmaxIndex, chooseActionIndex, createPolicyPlayer, searchActionValues, } from './ai';
|