GitHub

JavaScript Chess Engine

A simple chess program for teaching about chess programming for the web. Includes the html code, the javascript code and graphics needed to create a chess engine that can be played on a web page.

There is an ebook explaining the program. You can read of the first 10% of my book about this program here

Features include:

  • move generation
  • deepening iteration
  • alpha beta search
  • move ordering
  • hash table
  • history moves
  • capture search
  • extensions
  • reductions
  • evaluation of material, piece position, open files, pawn structure and king safety.

The engine can play a human or itself.

It can load positions for testing.

Read the original on github.com ↗