If you want to play chess without leaving your terminal, you have come to the right place. chess-cli is a chess written completely in C using ncurses library for TUI. The program is tested and developed on arch linux but should be compatible with most linux systems, macOS and WSL (for windows).
The project requires gcc, make and ncurses which are pre-installed in most of the linux distributions. If required, you may install these using your system's package manager. After installing above mentioned dependencies run the following command on terminal:
git clone https://github.com/rikkoder/chess-cli
make install
Note: If the compilation fails with error indicating
ncurses.h
not found even after installing ncurses library, try installing development libraries (with widechar support). Example for Ubuntu:sudo apt install libncurses5-dev libncursesw5-dev
Now you can simply start the game from terminal by typing chess-cli
.
The project is currently under development with some features implemented while other on the way. The project is not fully furnished and may have few bugs, please report if you find any. Following is the list of features completed or to be done:
- 2p local
- ASCII - Unicode mode
- undo
- history (move list)
- traverse in history
- huds and menu
- save
- load
- pgn export
- timer
- vAI
- difficulty levels
- 2p LAN
- ONLINE
- dynamic size (remove huds for smaller windows)
- add notation based input
- add assist mode (show possible moves, threat and check)
- custom theme support