Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 969 Bytes

README.md

File metadata and controls

28 lines (17 loc) · 969 Bytes

CChess

CChess is a simple chess engine written in pure C. It features a basic implementation of the minimax algorithm with alpha-beta pruning to evaluate and generate the best moves for the bot. The engine supports standard chess rules and can play against a human player.

Screenshot from 2024-11-18 21-07-02

Features

  • Basic chess engine written in C
  • Minimax algorithm with alpha-beta pruning for move generation
  • Evaluation function to assess board positions
  • Supports standard chess rules including castling and pawn promotion
  • Command-line interface for playing against the bot

Getting Started

Prerequisites

  • GCC (GNU Compiler Collection)

Building the Project

To build the project, navigate to the project directory and run the following command:

gcc -O3 -I/include/util.h ./src/main.c ./src/board.c -o ./build/release && ./build/release