Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gontard/rchess

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.