import { useGame } from "./useGame"; import { useScore } from "./useScore"; export type UseGameType = ReturnType; export type UseScoreType = ReturnType; export type { Difficulty, DifficultyName, } from "./lib/Sudoku"; export type GamePhase = "idle" | "playing"; export type PlayStatus = "started" | "game-over" | "game-won"; export type GameStatus = "waiting" | "started" | "game-over" | "game-won"; export const isPlaying = (status: GameStatus): status is PlayStatus => status === "started" || status === "game-over" || status === "game-won"; export const getGamePhase = (status: GameStatus): GamePhase => status === "waiting" ? "idle" : "playing";