Skip to content
d62liuPublic

About

Terminal chess in C++ with optional X11 display and a five-level AI — greedy heuristics through 4-ply alpha-beta with piece-square tables and quiescence search.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chess

A terminal chess game written in C++ with an optional graphical display. Supports human vs human, human vs computer, and computer vs computer.

Features

  • Multi-level AI engine: greedy heuristics (levels 1–3), 2-ply minimax (level 4), and 4-ply alpha-beta minimax with piece-square tables, and quiescence search (level 5)
  • Graphical display via X11 window
  • Custom board setup mode
  • Full chess rules (castling, en passant, promotion)

Build & Run

make
./chess

Usage

game human computer4   # start a game
move e2 e4                         # make a move
resign                             # forfeit

About

Terminal chess in C++ with optional X11 display and a five-level AI — greedy heuristics through 4-ply alpha-beta with piece-square tables and quiescence search.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages