import type { Cell, Point } from "../types.ts"; /** * Gravity, or a magnet under the board: a stone played anywhere in a column * comes to rest on the lowest empty cell of that column. Row 0 is the top, so * "lowest" is the highest row index. */ /** Where a stone dropped into `col` lands, or null when the column is full. * * @param board - The row-major board cells; null marks an empty point. * @param size - The number of cells on each side of the board. * @param col - The zero-based column. * @returns The landing point, or null when that column has no landing cell. * @example * ```ts * import { createGame, dropTarget } from "@johnmorrisdotca/narabe"; * * const drop = createGame({variant:"dropFour"}); * console.log(dropTarget(drop.board,drop.settings.size,0)); * ``` */ export declare function dropTarget(board: Cell[], size: number, col: number): Point | null; /** The one landing cell per column with room: the only cells a drop can fill. * * @param board - The row-major board cells; null marks an empty point. * @param size - The number of cells on each side of the board. * @returns The one landing cell per column with room: the only cells a drop can fill. * @example * ```ts * import { createGame, landingPoints } from "@johnmorrisdotca/narabe"; * * const drop = createGame({variant:"dropFour"}); * console.log(landingPoints(drop.board,drop.settings.size)); * ``` */ export declare function landingPoints(board: Cell[], size: number): Point[];