Skip to content

About

UCI-compatible chess engine with bitboards, alpha-beta search, and move generation in C++.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chess-engine

Chess Engine

"Every position has a truth. The engine just searches deeper than you can dream."

A chess engine built from scratch. No libraries for move generation, no copied evaluation tables. Just bitboards, alpha-beta, and the will to find the best move.

What It Is

  • UCI-compatible engine for Arena, Cute Chess, and command-line analysis
  • Bitboard-based board representation for maximum speed
  • Legal move generation with full rules support (pins, checks, castling, en passant)
  • Iterative deepening alpha-beta search with quiescence
  • Target: ~2000 ELO in self-play within v3

UCI Protocol

> uci
< id name NeonKnight
< id author Unknown
< uciok
> position startpos moves e2e4
> go depth 10
< info depth 10 score cp 45 nodes 1420034 time 1240 pv e2e4 e7e5 g1f3
< bestmove e2e4

Compatible with:

Features

Feature Version Status
Bitboard representation v1 Planned
Legal move generation v1 Planned
Make / unmake move v1 Planned
Alpha-beta search v2 Planned
Quiescence search v2 Planned
Iterative deepening v2 Planned
Transposition table v3 Planned
Null move pruning v3 Planned
Late move reduction v3 Planned
Opening book v3 Planned
UCI protocol v4 Planned
Lichess bot v4 Planned

Build

mkdir build && cd build
cmake ..
make -j$(nproc)
./neonknight uci

Requires C++20. Tested on GCC 13+ and Clang 16+.

Quick Start

# UCI mode
./neonknight uci

# Single analysis
./neonknight --fen "r1bqkb1r/pppp1ppp/2n2n2/4p3/2B1P3/5N2/PPPP1PPP/RNBQK2R" --depth 12

# Self-play benchmark
./neonknight --bench

ELO Target

Version Target ELO Notes
v1 1200 Legal moves only, random play
v2 1600 Alpha-beta + basic eval
v3 2000 Full search enhancements
v4 2200+ Opening book + tablebase prep

Sixty-four squares. Two armies. One optimal line. Search on.


☕ Support the Developer

If this project saved you time, solved a problem, or just made your day a little more neon, you can fuel the next one:

Buy Me A Coffee

About

UCI-compatible chess engine with bitboards, alpha-beta search, and move generation in C++.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages