mochi/README.md

1.7 KiB

MOCHI

MOCHI - the MinOr CHess engIne

MOCHI logo

MOCHI is a toy project to implement a simple chess engine in Go.

MOCHI is an UCI chess engine. That means you need a GUI to play against it. Currently only HIARCS (https://www.hiarcs.com/) is tested. I plan to test a few chess GUIs, eventually.

See my blog posts for more information:

Perft-Testing

MOCHI has built-in perft testing. To execute a test, run

# defaults to go run mochi perft cpw 4, see below
go run mochi

# run PERFT of the chess programming wiki test positions to the given depth (4)
go run mochi perft cpw 4

# run PERFT of the given FEN position to the given depth (5)
go run mochi perft fen "rnbqkbnr/pppppppp/8/8/8/N7/PPPPPPPP/R1BQKBNR b KQkq - 1 1"  5

Extensive test results are saved in perft-results.

Author

Chris Mair chris@1006.org

https://www.1006.org

License

The MOCHI source code is released under the BSD-2-Clause license. See the file LICENSE for details.

The MOCHI logo has been designed by Emil B. Mair and is licensed under CC BY 4.0. See https://creativecommons.org/licenses/by/4.0/ for details.