Strryke / betafish

A chess engine and AI move finder written in Javascript. Beats Stockfish level 6 on Lichess.
https://betafish.gavinong.com
MIT License
95 stars 10 forks source link
chess chess-ai chess-engine javascript minimax

Betafish

Betafish

Betafish - An amalgamation of AlphaZero and Stockfish.

Play it here.

Read more about it on my blog.

Introduction

Betafish is a chess engine and AI move finder written in Javascript, based on the Negamax algorithm. It beats Stockfish Level 6 on Lichess, and I estimate its around 1800-2000 Elo, depending on the thinking time afforded.

Features

This enables Betafish to search to a depth of 7-8 plies and around ~1mil possible nodes, given a thinking time of around 1-2 seconds.

Possible Improvements

Of course, re-writing this in a compiled language like C++ would be a huge improvement. I wrote it in Javacript as I wanted to deploy it as a web app, as what fun would a game be without letting your friends challenge it? However, I quickly realised the limitations, as JS is definitely not suited for these computing-intensive tasks.

Changelogs

Credits