@haelp/teto
Version:
A typescript-based controllable TETR.IO client.
14 lines • 739 B
TypeScript
import { type BoardSquare } from "../../board";
import { Mino } from "../../queue/types";
import type { Rotation } from "../tetromino/types";
import { kicks } from "./data";
export { kicks as kickData };
export type KickTable = keyof typeof kicks;
export declare const legal: (blocks: [number, number][], board: BoardSquare[][]) => boolean;
export declare const performKick: (kicktable: KickTable, piece: Mino, pieceLocation: [number, number], ao: [number, number], maxMovement: boolean, blocks: [number, number][], startRotation: Rotation, endRotation: Rotation, board: BoardSquare[][]) => {
kick: [number, number];
newLocation: [number, number];
id: string;
index: number;
} | boolean;
//# sourceMappingURL=index.d.ts.map