Skip to content

mhchaudh/knightfall

Repository files navigation

♞ Knightfall

Knightfall is an interactive chess-based puzzle app built with React + Vite. It focuses on knight movement challenges and a visually dynamic chessboard UI. The app combines chess.js for game logic, react-chessboard for rendering, and a lightweight AI engine to suggest or play moves.


🚀 Features

  • 🎯 Playable Chessboard UI: Built using react-chessboard for a responsive and interactive interface.
  • 🧠 Smart Move Validation: Uses chess.js for legal move checking and real-time game state updates.
  • 🤖 Mini AI Assistant: A basic AI in src/utils/chessAI.js that provides move suggestions or plays against you.
  • 💫 Sleek Design: Styled with Tailwind CSS and animated using Framer Motion for smooth transitions.

🧩 Tech Stack

  • Frontend: React 19 + Vite
  • Styling: Tailwind CSS (tailwind.config.js)
  • Logic: chess.js (move legality, game rules)
  • Board Component: react-chessboard
  • Animations: framer-motion
  • Linting: ESLint

⚙️ Run Locally

Prerequisites

  • Node.js v16+ (Node v18+ recommended)
  • npm (or yarn / pnpm)

Installation

# Navigate to project folder
cd knightfall

# Install dependencies
npm install

# Start the development server (Vite with HMR)
npm run dev

The app will be available at http://localhost:5173

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published