GarboChess Javascript

New game Time per move: ms


Analysis: Off
FEN:

About

Drag/drop to move pieces, paste a FEN into the FEN box, then hit enter to see it. Here is a good example to try (can you spot the tactics without computer analysis?)

r1bq4/1p4kp/3p1n2/5pB1/p1pQ4/8/1P4PP/4RRK1 w - - 0 1
In any position, click on the "analysis: on" link to start the computer thinking about the position.

This started as a feasibility project to see how Javascript would do in Chess, then languished until the latest Javascript engines came along. One of the big blockers to having a useful AI was that Javascript blocked the UI thread while executing, and breaking up a chess search to be interruptible is quite a pain. Then WebWorkers were added, which solved that problem nicely.

It uses pretty standard chess search techniques, along with a very basic evaluation that includes mobility. I wouldn't venture a guess on strength though :)

GitHub source

History

Back to Projects