♟ Java Chess Engine

Play Chess
Against Real AI

Six progressively stronger AI engines — from random moves to a 1900+ Elo master — powered by algorithms used in real chess engines.

6
AI Levels
1900+
Peak Elo
10
Openings
~0
Dependencies

Every Chess Feature, Done Right

Full rules enforcement, silky-smooth Swing GUI, and six completely distinct AI algorithms — each stronger than the last.

Complete Rules

En passant, castling, pawn promotion, check, checkmate, and stalemate — all fully enforced.

🧠

6 AI Algorithms

Random → Greedy → MiniMax → Alpha-Beta → Iterative Deepening → Advanced Alpha-Beta.

🎨

Animated GUI

60 fps piece animations, drag-and-drop, legal move highlights, and a check glow effect.

📖

Opening Book

10 classic openings: Ruy Lopez, Sicilian, French, Queen's Gambit, and more.

Transposition Table

1M-entry Zobrist hash table avoids re-searching repeated positions, speeding up search 5-10×.

🏆

Quiescence Search

Extends search at tactical positions to prevent the horizon effect — the engine won't miss an obvious recapture.

Six Distinct Engines

Each level uses a completely different algorithm — not just a deeper search.

Deep dive into the algorithms →

Ready to Play?

Download the prebuilt JAR — no compile step needed. Just Java 17 and you're running.

☕ Java 17+ 📦 Guava 18.0 (bundled) 🖥 Windows / macOS / Linux
⬇ Download Latest JAR 🔨 Build from Source

Run with: java -jar Chess.jar