Giter Site home page Giter Site logo

mvklingeren / chess-rs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from parthpant/chess-rs

0.0 0.0 0.0 591 KB

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

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

License: MIT License

Shell 0.21% Rust 97.21% HTML 2.58%

chess-rs's Introduction

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 - [email protected]

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

chess-rs's People

Contributors

parthpant avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.