chess-engine-2

command module
v0.0.0-...-1a8bede Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

README

My first bitboard-based engine.

How to Use

Obtain a third-party UCI-compatible chess GUI. Build this module's binary file locally (go build). In the GUI settings, set the binary file as the "engine to use."

Perft Milestones

Perft is a debugging function that compares a move tree's leaf node count against an accepted value. The largest performance gains were from reducing memory allocations and the associated GC time.

Depth Time Speed (million leaves/s)
perft(4) 0.15s 1.35
perft(5) 1.4s 3.5
perft(6) 16s 7.1

Want to build your own engine?

I recommend starting by making a command-line game that makes random, legal moves against the player. At that point, reading about move generator debugging, search algorithms, and evaluation algorithms will help your engine make stronger moves.

Learning Resources

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Search and evaluation
Search and evaluation
Pre-calculated move bitboards, including "fancy magic" bitboards for sliding pieces
Pre-calculated move bitboards, including "fancy magic" bitboards for sliding pieces
Move generation
Move generation
Universal chess interface protocol
Universal chess interface protocol

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL