RepositoryC++CNChina
OF

official-pikafish/Pikafish

A free and strong UCI xiangqi engine

2.3kstars
399forks
4issues
1views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: xiangqi-engine

#1 Repository of the week

1
TINIX TRENDING·Topic: pikafish

#1 Repository of the week

1
TINIX TRENDING·Topic: xiangqi

#1 Repository of the week

Pikafish

Pikafish

A free and strong UCI xiangqi engine.
Explore Pikafish docs »

Report bug · Open a discussion · Discord · Blog

Build License RuleBook
Release Commits
Website Fishtest Discord

Overview

Pikafish is a free and strong UCI xiangqi engine derived from Stockfish that analyzes xiangqi positions and computes the optimal moves.

Pikafish 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 Pikafish and are available online. Read the documentation for your GUI of choice for information about how to use Pikafish with it.

See also the Pikafish documentation for further usage help.

Files

This distribution of Pikafish consists of the following files:

  • README.md, the file you are currently reading.

  • Copying.txt, a text file containing the GNU General Public License version 3.

  • AUTHORS, a text file with the list of authors for the official Pikafish project.

  • src, a subdirectory containing the full source code, including a Makefile that can be used to compile Pikafish on Unix-like systems.

  • a file with the .nnue extension, storing the neural network for the NNUE evaluation.

Contributing

See Contributing Guide.

Donating hardware

Improving Pikafish 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 Pikafish 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 Pikafish, please read this guideline first, where the basics of Pikafish development are explained.

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

Compiling Pikafish

Pikafish 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 Pikafish 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.

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 Pikafish.

Terms of use

GNU General Public License version 3

Pikafish 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 Pikafish 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

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

Similar Projects

Discover other similar projects and AI models.

RepositoryTypeScript
Velithia/JieqiBox

A modern desktop GUI for Jieqi (揭棋)

53
Dec 19, 2025
RepositoryC++
official-stockfish/Stockfish

A free and strong UCI chess engine

17.5k
Nov 27, 2026
RepositoryC++
fairy-stockfish/Fairy-Stockfish

chess variant engine supporting Xiangqi, Shogi, Janggi, Makruk, S-Chess, Crazyhouse, Bughouse, and many more

933
Nov 27, 2026
RepositoryRust
atopx/chessboard

“象棋学习助手”是一款智能化的中国象棋辅助工具。通过实时识别屏幕中的棋盘局面,结合高性能引擎分析,为在线对战平台的玩家提供精准走法建议与策略指导,帮助象棋爱好者快速提升棋艺水平。

103
Jan 28, 2026
RepositoryPython
practical-tutorials/project-based-learning

Curated list of project-based tutorials

290.9k
Nov 30, 2026
RepositoryJavaScript
CyC2018/CS-Notes

:books: 技术面试必备基础知识、Leetcode、计算机操作系统、计算机网络、系统设计

186.6k
Nov 27, 2026
RepositoryC++
ClickHouse/ClickHouse

ClickHouse® is a real-time analytics database management system

51.3k
Dec 1, 2026
RepositoryC++
Light-City/CPlusPlusThings

C++那些事

43.6k
Oct 13, 2026
RepositoryC++
huihut/interview

📚 C/C++ 技术面试基础知识总结,包括语言、程序库、数据结构、算法、系统、网络、链接装载库等知识及面试经验、招聘、内推等信息。This repository is a summary of the basic knowledge of recruiting job seekers and beginners in the direction of C/C++ technology, including language, program library, data structure, algorithm, system, network, link loading library, interview experience, recruitment, recommendation, etc.

38.3k
Sep 17, 2026