Rust Chess Engine by Dhruv ChhabraRust Chess Engine by Dhruv Chhabra

Rust Chess Engine

Portfolio project
Dhruv Chhabra

Rust Chess Engine

Overview

A command-line chess engine implemented in Rust using the chess crate for game logic.

Features

CLI interface for move input
Chess game logic via chess crate
Board display and move validation

Setup

Install Rust via rustup:
curl --proto =https://sh.rustup.rs -sSf | sh
Add chess crate:
cargo add chess
Build the project:
cargo build

Usage

cargo run

Controls

Enter moves in standard algebraic notation (e.g., e2e4)
Type "quit" to exit

Example

Welcome to the chess engine! Current board: rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1 Enter your move (e.g., e2e4): e2e4 Move applied.

Notes

Requires Rust 1.100.0+
Uses chess crate v3.2.0
Remove unused dependency anyhow from Cargo.toml if not needed

Repository

About

Created chess engine with help of local AI and weight manupulation

0 likes · 0 views · Dec 1, 2026

Built a command-line chess engine in Rust with move input, board display, and move validation using the chess crate.

Tags