gontard / rchess

Simple chess AI with rustwasm

Home Page:https://gontard.github.io/rchess/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple chess AI

A simple chess AI based on this tutorial: A step-by-step guide to building a simple chess AI (https://github.com/lhartikk/simple-chess-ai). It served as a support to continue to learn rust and to (re)discover a bit some basic game algorithm.

Features

This set of features are implemented in the algorithm:

Architecture

The design is simple everything runs in the browser.

AI implementation

The AI algorithm runs in a dedicated web worker thread since this is a CPU intensive task. Thus the UI rendering is not blocked.

The algorithm is a web assembly module compiled from rust using rustwasm.

UI

The UI is very basic but it is good enough. chessboardjs is used to display the chessboard.

Known limitations

Some chess moves are not possible to the user (resignation, promotion). The algorithm is not very good at the end-game it should have a more specific behavior.

About

Simple chess AI with rustwasm

https://gontard.github.io/rchess/


Languages

Language:Rust 57.1%Language:JavaScript 32.5%Language:CSS 8.0%Language:HTML 2.4%