Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
main
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
import {MoveExpander} from "./move-expander"
// TODO: Properly handle freezing
export interface OrbitTransformation {
permutation: number[]
orientation: number[]
}
// TODO: Use a list instead of an object for performance?
export interface Transformation {
[/* orbit name */key: string]: OrbitTransformation
}
export interface OrbitDefinition {
numPieces: number
orientations: number
}
export interface KPuzzleDefinition {
name: string
orbits: {[/* orbit name */key: string]: OrbitDefinition}
startPieces: Transformation // TODO: Expose a way to get the transformed start pieces.
moves: {[/* move name */key: string]: Transformation}
svg?: string
moveExpander?: MoveExpander;
}