Skip to content

Repository files navigation

β™ž Knightfall Chess

Play the move. Know the story.

A modern multiplayer chess platform featuring AI opponents, real-time online matchmaking, multiple time controls, handcrafted board themes, and Stockfish-powered game analysis.

Play Knightfall Source Code Latest Release

MIT JavaScript Node.js WebSocket Stockfish Render


Knightfall Chess


Highlights

  • β™Ÿ Real-Time Online Multiplayer with WebSocket matchmaking
  • πŸ€– 10-Level AI Challenge Ladder
  • πŸ‘‘ Five Unlockable Legendary Chess Opponents
  • 🧠 Stockfish 18 Powered Game Analysis
  • 🎬 Interactive Replay System
  • πŸ“ˆ Color-Coded Move Classification
  • ⏱ Four Time Controls (1, 5, 30 & 60 Minutes)
  • 🎨 Six Handcrafted Board Themes
  • πŸŒ™ Light & Dark Mode
  • ⚑ Fast, Lightweight & Built with Vanilla JavaScript

About

Knightfall Chess is a modern browser-based chess platform designed to combine competitive gameplay with educational analysis. Inspired by professional online chess platforms while maintaining its own unique identity, Knightfall allows players to enjoy local games, challenge progressively stronger AI opponents, or compete online through real-time WebSocket matchmaking.

Every completed game can be reviewed using the integrated Stockfish 18 WebAssembly engine, providing detailed engine evaluations, interactive replay controls, color-coded move classifications, and clear explanations that help players understand every decision they make.

Built with HTML5, CSS3, Vanilla JavaScript, Node.js, WebSockets, and WebAssembly, Knightfall delivers a lightweight yet feature-rich chess experience entirely inside the browser.


Features

Gameplay

  • Local Pass-and-Play Chess
  • Real-Time Online Multiplayer
  • Multiple Time Controls
  • Live Chess Clocks
  • Complete FIDE Chess Rules
  • Castling
  • En Passant
  • Pawn Promotion
  • Checkmate, Draw & Stalemate Detection

AI Challenge

  • 10 Progressive AI Difficulty Levels
  • Beginner to Master Challenge Ladder
  • Five Unlockable Legendary Opponents
  • Progressive Elo-Based Difficulty

Online Multiplayer

Knightfall features a lightweight WebSocket-powered matchmaking system that allows players to compete against each other in real time.

Features include:

  • Automatic Matchmaking
  • Live Move Synchronization
  • Shared Game State
  • Multiple Time Controls
  • Low-Latency Multiplayer
  • Instant Opponent Pairing

Stockfish Analysis

Every completed game can be reviewed using the integrated Stockfish 18 engine.

Analysis features include:

  • Stockfish 18 WebAssembly Engine
  • Position Evaluation
  • Best Move Detection
  • Color-Coded Move Quality
  • Interactive Replay
  • Modern Dark Replay Interface
  • Engine Explanations
  • Smooth Move Navigation

Move Classification

  • Brilliant
  • Great
  • Best
  • Excellent
  • Good
  • Book
  • Inaccuracy
  • Mistake
  • Blunder
  • Miss

Customization

Knightfall offers six handcrafted chess board themes, allowing every player to personalize their playing experience.

Available themes include:

  • Classic
  • Medieval
  • Sci-Fi
  • Nature
  • Luxury
  • Fun

Additional customization features:

  • Light & Dark Mode
  • Responsive Layout
  • Modern UI Animations
  • Smooth Piece Effects

Screenshots

Landing Page

A modern homepage introducing Knightfall with a clean interface focused on competitive play and game analysis.

Landing Page


Online Matchmaking

Find opponents instantly through WebSocket-powered matchmaking and enjoy synchronized real-time gameplay.

Online Matchmaking


AI Match Setup

Choose your preferred time control, playing side, AI difficulty, and board theme before every match.

AI Setup


Gameplay

Experience smooth gameplay with live clocks, responsive controls, and complete chess rules.

Gameplay


Stockfish Analysis

Review every move using Stockfish-powered engine evaluations, detailed explanations, and color-coded move classifications.

Analysis


Interactive Replay

Replay every move with smooth navigation controls, engine evaluations, and a modern dark analysis interface.

Replay


Board Themes

Switch instantly between six handcrafted board themes during gameplay.

Themes


Feature Overview

Feature Knightfall
AI Opponents βœ…
Online Multiplayer βœ…
Stockfish Analysis βœ…
Interactive Replay βœ…
Multiple Time Controls βœ…
Six Board Themes βœ…
Light & Dark Mode βœ…
Responsive UI βœ…

Technology Stack


Project Structure

Knightfall Chess
β”‚
β”œβ”€β”€ engine/
β”‚   └── Stockfish 18
β”‚
β”œβ”€β”€ screenshots/
β”‚
β”œβ”€β”€ index.html
β”œβ”€β”€ styles.css
β”œβ”€β”€ app.js
β”œβ”€β”€ server.js
β”œβ”€β”€ package.json
β”œβ”€β”€ Dockerfile
β”œβ”€β”€ LICENSE
└── README.md

Run Locally

git clone https://github.com/Loledproski/knightfall-chess.git
cd knightfall-chess
npm install
npm start

Open your browser and visit:

http://localhost:3000

Future Roadmap

Knightfall Chess is actively evolving, with several exciting features planned for future releases.

Competitive

  • Elo Rating System
  • Ranked Matchmaking
  • Global Leaderboards
  • Tournament Mode

Social

  • User Authentication
  • Friends System
  • Private Rooms
  • Spectator Mode

Analysis

  • Opening Explorer
  • Endgame Trainer
  • Puzzle Mode
  • Match History

Platform

  • Cloud Save
  • Progressive Web App (PWA)
  • Mobile Optimization
  • Custom Piece Sets

License

This project is licensed under the MIT License.


Acknowledgements

  • Stockfish Chess Engine
  • Node.js
  • Render
  • GitHub

Made with ❀️ by Harsh Mishra

⭐ If you enjoyed Knightfall Chess, consider giving this repository a star!

About

Modern multiplayer chess platform with AI opponents, online matchmaking, and Stockfish-powered move review.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages