UNPKG

@khazh/tic-tac-toe-react

Version:

A customizable Tic Tac Toe game component for React with AI opponent, configurable board size, and win conditions

5 lines 379 B
import type { Player, GameMode, Board, GameConfig } from "../types/game"; export declare const useAI: (gameMode: GameMode, currentPlayer: Player, board: Board, winner: Player | null, isDraw: boolean, config: GameConfig, onAIMove: (row: number, col: number) => void) => { makeAIMove: (board: Board, aiPlayer: Player) => [number, number]; }; //# sourceMappingURL=useAI.d.ts.map