https://github.com/aatrick/cchess
simple chess engine written in pure C
https://github.com/aatrick/cchess
c c-programming-language chess chess-engine cli
Last synced: over 1 year ago
JSON representation
simple chess engine written in pure C
- Host: GitHub
- URL: https://github.com/aatrick/cchess
- Owner: Aatrick
- License: gpl-3.0
- Created: 2024-11-07T11:22:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-18T20:13:26.000Z (over 1 year ago)
- Last Synced: 2025-03-16T19:19:18.726Z (over 1 year ago)
- Topics: c, c-programming-language, chess, chess-engine, cli
- Language: C
- Homepage:
- Size: 41 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.

## 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:
```sh
gcc -O3 -I/include/util.h ./src/main.c ./src/board.c -o ./build/release && ./build/release
```