Stockfish README

The project's README from github.com/official-stockfish/Stockfish. As one markdown file: README.md.

Stockfish

Stockfish

A free and strong UCI chess engine.
Explore Stockfish docs »

Report bug · Open a discussion · Discord · Blog

Build License
Release Commits
Website Fishtest Discord

Overview

Stockfish is a free and strong UCI chess engine derived from Glaurung 2.1 that analyzes chess positions and computes the optimal moves.

Stockfish does not include a graphical user interface (GUI) that is required to display a chessboard and to make it easy to input moves. These GUIs are developed independently from Stockfish and are available online. Read the documentation for your GUI of choice for information about how to use Stockfish with it.

See also the Stockfish documentation for further usage help.

Files

This distribution of Stockfish consists of the following files:

Contributing

See Contributing Guide.

Donating hardware

Improving Stockfish requires a massive amount of testing. You can donate your hardware resources by installing the Fishtest Worker and viewing the current tests on Fishtest.

Improving the code

In the chessprogramming wiki, many techniques used in Stockfish are explained with a lot of background information. The section on Stockfish describes many features and techniques used by Stockfish. However, it is generic rather than focused on Stockfish's precise implementation.

The engine testing is done on Fishtest. If you want to help improve Stockfish, please read this guideline first, where the basics of Stockfish development are explained.

Discussions about Stockfish take place these days mainly in the Stockfish Discord server. This is also the best place to ask questions about the codebase and how to improve it.

Compiling Stockfish

Stockfish has support for 32 or 64-bit CPUs, certain hardware instructions, big-endian machines such as Power PC, and other platforms.

On Unix-like systems, it should be easy to compile Stockfish directly from the source code with the included Makefile in the folder src. In general, it is recommended to run make help to see a list of make targets with corresponding descriptions. An example suitable for most Intel and AMD chips:

cd src
make -j profile-build

Detailed compilation instructions for all platforms can be found in our documentation. Our wiki also has information about the UCI commands supported by Stockfish.

Terms of use

Stockfish is free and distributed under the GNU General Public License version 3 (GPL v3). Essentially, this means you are free to do almost exactly what you want with the program, including distributing it among your friends, making it available for download from your website, selling it (either by itself or as part of some bigger software package), or using it as the starting point for a software project of your own.

The only real limitation is that whenever you distribute Stockfish in some way, you MUST always include the license and the full source code (or a pointer to where the source code can be found) to generate the exact binary you are distributing. If you make any changes to the source code, these changes must also be made available under GPL v3.

Acknowledgements

Stockfish uses neural networks trained on data provided by the Leela Chess Zero project, which is made available under the Open Database License (ODbL).

Stockfish (official-stockfish/Stockfish)

Searching Database…

16.9K ·GitHub
Что это такое?Stockfish — это бесплатный сильный шахматный движок с поддержкой UCI, созданный на основе Glaurung 2.1. Он анализирует шахматные позиции и вычисляет оптимальные ходы.
То есть это шахматная программа с доской, за которой можно играть?Нет — это только движок, без графического интерфейса. Его нужно подключить к отдельной шахматной оболочке, которая показывает доску и позволяет вводить ходы; Stockfish в это время ведёт анализ.
Как его запустить?Скомпилировать из исходников: на Unix-подобных системах используйте входящий в комплект Makefile в папке src, начав с 'make help', чтобы увидеть список целей (одна из примерных целей подходит для большинства чипов Intel и AMD). Подробные инструкции для всех платформ есть в вики.
На каком железе он может работать?Он работает на 32- и 64-битных процессорах, использует определённые аппаратные инструкции, если они доступны, и поддерживает даже машины с big-endian, такие как Power PC, а также другие платформы.
Могу ли я использовать его в своём приложении или даже продавать?Да — GPL v3 позволяет распространять его, продавать или строить на его основе свой проект. Но есть условие: при любом распространении нужно прикладывать лицензию и полные исходники, а ваши изменения тоже должны выходить под GPL v3.
Использует ли Stockfish нейросеть?Да — он оценивает позиции с помощью NNUE. В дистрибутив входит файл с расширением .nnue, в котором хранится нейросеть, а в бинарных сборках этот файл встроен внутрь.
Откуда берутся данные для обучения его нейросети?Из данных проекта Leela Chess Zero, которые доступны по лицензии Open Database License (ODbL).
Чем я могу помочь сделать Stockfish сильнее?Улучшение требует огромного объёма тестирования: можно установить Fishtest Worker и предоставить своё железо тестовой инфраструктуре, либо следовать руководству для разработчиков и улучшать код. Обсуждения идут в основном в Stockfish Discord.
What are similar projects?dlib, ninja, tensorflow, AirSim, CNTK, DeepSpeech, caffe, openage
Size
20.1 MB
Stars
16.9K
Age
12y
Commits · 90 Days