rikkoder / chess-cli

TUI Chess written in C using ncurses library.
1 stars 1 forks source link
c chess chess-cli game-development linux macos minimax-algorithm minimax-alpha-beta-pruning multiplayer ncurses ncurses-game terminal-based-game wsl

# chess-cli

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).

(screenshot of the game)

Installation

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.

Features

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: