mvklingeren / chess-rs

A Chess Engine written in Rust that runs natively and on the web!

Home Page:https://parthpant.github.io/chess-rs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About The Project

chess-rs is a Chess Engine written from scratch in Rust that runs natively and on web!

Live Demo: https://parthpant.github.io/chess-rs/

screenshot

Features

  • Move Generation using BitBoards (<8s perft results at depth 6 for starting position)
  • Supports all moves including en-passant, pawn promotion and castling
  • GUI gameplay
  • Perft Runner
  • Egui Integration
  • Board Evaluation (Matrial and Positional)
  • AI (NegaMax with Quiescence Search)
  • Move Ordering (MVV-LVA, Killer & History Heuristics)
  • Zobrist Hashing
  • Transposition Tables
  • Incremental Search Deepening
  • Opening Book

Getting Started

Prerequisites

Rust

You will require the rust toolchain to be installed on your system.

Follow: Rust Website

Note: If you only want to run natively you are good to go. To build for WASM you will also need to install the following.

Web Target

rustup target add wasm32-unknown-unknown

Trunk

cargo install --locked trunk

Build from source

Simply clone the Git repository and build using the cargo build system

git clone https://github.com/ParthPant/chess-rs.git
cd chess-rs
cargo build

Usage

# You can either start the Chess Engine with
cargo run

# Or you can run in the web browser with
trunk serve

# Or you can run perft analysis
cargo run -p chrs-perft -- 5 "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"

License

Distributed under the MIT License. See LICENSE.txt for more information.

Contact

Parth Pant - @PantParth - parthpant4@gmail.com

Project Link: https://github.com/ParthPant/chess-rs.git

About

A Chess Engine written in Rust that runs natively and on the web!

https://parthpant.github.io/chess-rs/

License:MIT License


Languages

Language:Rust 97.2%Language:HTML 2.6%Language:Shell 0.2%