Skip to content

detectivekaktus/cheezee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cheezee

Cheezee preview showing a chessboard position.

Cheezee (pronounced as cheese) is an ncurses chess client written for Linux. Play custom positions with FEN notation you can type in or pass as --fen argument to the client or play normal game from the standard position.

The FEN position you enter is formatted in the following way: BOARD WHO_TO_MOVE CASTELING. For instance you can use rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq but not rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1.

The client supports all legal moves in chess (including en-passant, casteling) and can understand whether the position is in checkmate or in stalemate.

All the moves played are logged to the right hand side of the board with the standard notation except that the black pieces are annotated with lowercase letters.

For users who have a trauma after using VIM or VIM-like editors, you can exit the program or some parts of the program by pressing Q or ESCAPE no matter where you are.

Compilation

In order to compile the program, you need to have a C compiler (either GCC or clang) and the ncurses library installed on your system.

Invoke the following command to compile the executable:

$ make

Contribution

The codebase is a mess which was written with big delays and so it lacks some modern C, good logic and good skills of writing C code.