fairystockfish.git
34 hours agoDefine piece types with ambiguous demotion multiple times
H.G.Muller [Sat, 20 Dec 2025 11:07:13 +0000]
Define piece types with ambiguous demotion multiple times

The predefined variants now define pieces that demote differently (or not
at all) multiple times, as custom pieces. To make this possible add_piece()
was changed to allow pieces with the same ID if the synonym is '+'.
a new arrays demotedPieceType[PieceType] and a PieceSet isDemotedType
are set to record this, for later use.

6 days agoBump the github-actions group with 2 updates (#946) master
dependabot[bot] [Mon, 15 Dec 2025 15:29:58 +0000]
Bump the github-actions group with 2 updates (#946)

Bumps the github-actions group with 2 updates: [actions/cache](https://github.com/actions/cache) and [actions/upload-artifact](https://github.com/actions/upload-artifact).

Updates `actions/cache` from 4 to 5
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v4...v5)

Updates `actions/upload-artifact` from 5 to 6
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/upload-artifact
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

3 weeks agoBump actions/checkout from 5 to 6 in the github-actions group (#940)
dependabot[bot] [Mon, 24 Nov 2025 23:01:53 +0000]
Bump actions/checkout from 5 to 6 in the github-actions group (#940)

5 weeks agoUpdate Minixiangqi link in README.md
Fabian Fichter [Fri, 14 Nov 2025 18:17:09 +0000]
Update Minixiangqi link in README.md

5 weeks agoBump al-cheb/configure-pagefile-action in the github-actions group (#936)
dependabot[bot] [Mon, 10 Nov 2025 23:23:05 +0000]
Bump al-cheb/configure-pagefile-action in the github-actions group (#936)

Bumps the github-actions group with 1 update: [al-cheb/configure-pagefile-action](https://github.com/al-cheb/configure-pagefile-action).

Updates `al-cheb/configure-pagefile-action` from 1.4 to 1.5
- [Release notes](https://github.com/al-cheb/configure-pagefile-action/releases)
- [Commits](https://github.com/al-cheb/configure-pagefile-action/compare/v1.4...v1.5)

---
updated-dependencies:
- dependency-name: al-cheb/configure-pagefile-action
  dependency-version: '1.5'
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

5 weeks agoFix NNUE compatibility check to validate king count (#932)
Fabian Fichter [Mon, 10 Nov 2025 16:34:09 +0000]
Fix NNUE compatibility check to validate king count (#932)

Add safeguard in nnue_applicable() to ensure that when nnueKing is set,
both WHITE and BLACK have exactly one king of that piece type. This prevents
NNUE from being used in positions where the king count doesn't match the
expected configuration, which could lead to incorrect evaluations.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>

5 weeks agoFix flip command for FENs with pockets (#930)
Fabian Fichter [Sun, 9 Nov 2025 21:38:13 +0000]
Fix flip command for FENs with pockets (#930)

Closes #924.

6 weeks agoUpdate macOS runner version in github actions (#933)
Fabian Fichter [Tue, 4 Nov 2025 22:26:00 +0000]
Update macOS runner version in github actions (#933)

7 weeks agoBump actions/upload-artifact from 4 to 5 in the github-actions group (#931)
dependabot[bot] [Mon, 27 Oct 2025 20:17:01 +0000]
Bump actions/upload-artifact from 4 to 5 in the github-actions group (#931)

Bumps the github-actions group with 1 update: [actions/upload-artifact](https://github.com/actions/upload-artifact).

Updates `actions/upload-artifact` from 4 to 5
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

7 weeks agoUpdate variants.ini (Added 'Mandala') (#926)
Snowmoondaphne [Mon, 27 Oct 2025 13:56:28 +0000]
Update variants.ini (Added 'Mandala') (#926)

Added a variant named Mandala

8 weeks agoMove instructions to AGENTS.md
Fabian Fichter [Wed, 22 Oct 2025 22:26:49 +0000]
Move instructions to AGENTS.md

2 months agoBump actions/setup-node from 5 to 6 in the github-actions group (#929)
dependabot[bot] [Mon, 20 Oct 2025 14:51:50 +0000]
Bump actions/setup-node from 5 to 6 in the github-actions group (#929)

2 months agoUpdate variants.ini (Leaperhouse) (#921)
Snowmoondaphne [Mon, 6 Oct 2025 21:08:35 +0000]
Update variants.ini (Leaperhouse) (#921)

Added 'flyingGeneral = true'

3 months agoFix antichess K vs N endgame evaluation (#909)
John Doknjas [Sun, 14 Sep 2025 15:14:22 +0000]
Fix antichess K vs N endgame evaluation (#909)

3 months agoFix insufficient material detection for variants with multiple pawn types (#916)
Copilot [Wed, 10 Sep 2025 20:45:37 +0000]
Fix insufficient material detection for variants with multiple pawn types (#916)

Closes #915

3 months agoEnsure recompilation of pyffish on header changes (#917)
Fabian Fichter [Wed, 10 Sep 2025 20:31:15 +0000]
Ensure recompilation of pyffish on header changes (#917)

3 months agoBump the github-actions group with 2 updates (#914)
dependabot[bot] [Mon, 8 Sep 2025 21:42:29 +0000]
Bump the github-actions group with 2 updates (#914)

3 months agoModify contribution support links in README
Fabian Fichter [Fri, 22 Aug 2025 21:06:29 +0000]
Modify contribution support links in README

3 months agoFix atomic SEE and endgames (#907)
Fabian Fichter [Fri, 22 Aug 2025 20:43:15 +0000]
Fix atomic SEE and endgames (#907)

* Fix SEE issues with double king explosions
* Fix wrong atomic KQK and KXK endgame evaluation

Credits to @johndoknjas for the initial fix.

4 months agoExtend gitignore file
Fabian Fichter [Thu, 21 Aug 2025 21:54:04 +0000]
Extend gitignore file

4 months agoBump actions/checkout from 4 to 5 in the github-actions group (#905)
dependabot[bot] [Mon, 18 Aug 2025 21:30:50 +0000]
Bump actions/checkout from 4 to 5 in the github-actions group (#905)

4 months agoFix atomic960 castling (#904)
Fabian Fichter [Mon, 18 Aug 2025 21:00:02 +0000]
Fix atomic960 castling (#904)

Closes #887.

4 months agoEnhance regression test script
Fabian Fichter [Mon, 18 Aug 2025 13:21:03 +0000]
Enhance regression test script

Support comparing both bench and perft

4 months agoValidate drops of pseudo-royals (#903)
Fabian Fichter [Sun, 17 Aug 2025 16:59:35 +0000]
Validate drops of pseudo-royals (#903)

Closes #867.

4 months agoSupport color specific enPassantRegion (#900)
Fabian Fichter [Sun, 17 Aug 2025 11:47:36 +0000]
Support color specific enPassantRegion (#900)

4 months agoDiverge readme from official stockfish
Fabian Fichter [Fri, 15 Aug 2025 21:41:59 +0000]
Diverge readme from official stockfish

4 months agoConsistently use wrappers around variant properties (#898)
Fabian Fichter [Fri, 15 Aug 2025 20:35:17 +0000]
Consistently use wrappers around variant properties (#898)

* Consistently use wrappers around variant properties instead of a mix of direct and indirect access
* Rename drop region fields to follow the color postfix naming convention
* Disambiguate the promotionPawnType(s) fields

4 months agoMore concise and relevant copilot instructions
Fabian Fichter [Fri, 15 Aug 2025 17:44:58 +0000]
More concise and relevant copilot instructions

4 months agoUpdate bench
Fabian Fichter [Wed, 13 Aug 2025 20:48:23 +0000]
Update bench

bench: 6180480

4 months agoAdd Copilot coding agent instructions for Fairy-Stockfish development (#897)
Copilot [Wed, 13 Aug 2025 20:36:08 +0000]
Add Copilot coding agent instructions for Fairy-Stockfish development (#897)

4 months agoAdd promoted piece validation to FEN validation (#895)
Copilot [Mon, 11 Aug 2025 20:16:47 +0000]
Add promoted piece validation to FEN validation (#895)

Fixes #416

4 months agoFix Lack of Pieces in Hand in Flipello Variants (#893)
PraseodymiumSpike [Sat, 9 Aug 2025 21:27:33 +0000]
Fix Lack of Pieces in Hand in Flipello Variants (#893)

Closes #504

4 months agoAdd python stub file
Fabian Fichter [Sat, 19 Jul 2025 10:50:22 +0000]
Add python stub file

Improve IDE integration by providing a stub file.

4 months agoAdd checkshogi variant with check counting enabled (#894)
Copilot [Thu, 7 Aug 2025 14:15:29 +0000]
Add checkshogi variant with check counting enabled (#894)

4 months agoUpdate variants.ini docs
Fabian Fichter [Wed, 6 Aug 2025 09:06:24 +0000]
Update variants.ini docs

5 months agoUpdate windows action runner for wheels
Fabian Fichter [Sat, 5 Jul 2025 21:28:52 +0000]
Update windows action runner for wheels

5 months agoExtend insufficient material tests
Fabian Fichter [Sat, 5 Jul 2025 21:24:20 +0000]
Extend insufficient material tests

7 months agoBump versions
gbtami [Wed, 21 May 2025 10:11:31 +0000]
Bump versions

7 months agoFix custom ep captures
Fabian Fichter [Sat, 3 May 2025 15:59:55 +0000]
Fix custom ep captures

Pick the frontmost piece to be captured.

Closes #876.

8 months agoUpdate AUTHORS
Fabian Fichter [Sat, 29 Mar 2025 13:42:55 +0000]
Update AUTHORS

8 months agoUpdate CI badge URLs
Fabian Fichter [Sun, 23 Mar 2025 18:08:21 +0000]
Update CI badge URLs

9 months agomacOS builds + Runner updates (#871)
dpldgr [Sun, 9 Mar 2025 14:45:52 +0000]
macOS builds + Runner updates (#871)

10 months agoBump versions
gbtami [Sat, 8 Feb 2025 11:59:20 +0000]
Bump versions

11 months agoFix Supply Chess #699
gbtami [Tue, 14 Jan 2025 16:41:25 +0000]
Fix Supply Chess #699

11 months agoUpdate cibuildwheel, bump pyffish version
gbtami [Thu, 9 Jan 2025 20:30:35 +0000]
Update cibuildwheel, bump pyffish version

11 months agoFix FEN parsing for S-Chess
Fabian Fichter [Thu, 9 Jan 2025 18:49:43 +0000]
Fix FEN parsing for S-Chess

Closes #855.

11 months agoFix pyffish License classifier
gbtami [Tue, 31 Dec 2024 18:23:07 +0000]
Fix pyffish License classifier

11 months agoHandle invalid castling FEN
Fabian Fichter [Mon, 30 Dec 2024 12:54:58 +0000]
Handle invalid castling FEN

Closes #826.

11 months agoUpdate workflow action version (#851)
yjf2002ghty [Mon, 30 Dec 2024 10:37:20 +0000]
Update workflow action version (#851)

11 months agoUpdate variants.ini (+ Leaperhouse) (#836)
Snowmoondaphne [Sun, 29 Dec 2024 18:42:44 +0000]
Update variants.ini (+ Leaperhouse) (#836)

11 months agoImplement fog_fen() (#840)
Bajusz Tamás [Sun, 29 Dec 2024 18:41:41 +0000]
Implement fog_fen() (#840)

11 months agoUpload artifacts for ffish.js builds in CI (#834)
yjf2002ghty [Sun, 29 Dec 2024 18:22:52 +0000]
Upload artifacts for ffish.js builds in CI (#834)

11 months agoBump github-actions dependencies (#850)
dependabot[bot] [Fri, 27 Dec 2024 18:24:44 +0000]
Bump github-actions dependencies (#850)

11 months agoKeep GitHub Actions up to date with GitHub's Dependabot
Christian Clauss [Wed, 11 Dec 2024 12:57:11 +0000]
Keep GitHub Actions up to date with GitHub's Dependabot

Fixes software supply chain safety warnings like at the bottom right of

https://github.com/fairy-stockfish/Fairy-Stockfish/actions/runs/12274061623
* [Keeping your actions up to date with Dependabot](https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot)
* [Configuration options for the dependabot.yml file - package-ecosystem](https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem)

12 months agoFix duck chess en passant FEN setup
Fabian Fichter [Wed, 11 Dec 2024 20:39:30 +0000]
Fix duck chess en passant FEN setup

Closes #832.

12 months agochore(license): update license classifier to `GPL-3.0-or-later`
Rui Chen [Wed, 11 Dec 2024 01:54:24 +0000]
chore(license): update license classifier to `GPL-3.0-or-later`

Signed-off-by: Rui Chen <rui@chenrui.dev>

12 months agoUpdate macos version for wheels
Fabian Fichter [Wed, 11 Dec 2024 09:58:20 +0000]
Update macos version for wheels

15 months agoAdd option to compile ffishjs in docker
Fabian Fichter [Fri, 13 Sep 2024 21:51:19 +0000]
Add option to compile ffishjs in docker

15 months agoScale down slider value based on distance
Fabian Fichter [Fri, 6 Sep 2024 18:58:42 +0000]
Scale down slider value based on distance

15 months agoVariant-specific endgame evaluation (#823)
Fabian Fichter [Thu, 22 Aug 2024 20:38:26 +0000]
Variant-specific endgame evaluation (#823)

Add variant-specific endgame evaluation for antichess, atomic, duck chess, misere, and racing kings.

Closes #820

16 months agoUpdate variants.ini (+ Muje)
Snowmoondaphne [Wed, 24 Jul 2024 09:10:14 +0000]
Update variants.ini (+ Muje)

a variant Muje has been added

17 months agoBump pyffish version
gbtami [Fri, 19 Jul 2024 15:34:57 +0000]
Bump pyffish version

17 months agobug fixes only, subset of improve connection games
rainrat [Tue, 16 Jul 2024 21:47:40 +0000]
bug fixes only, subset of improve connection games

17 months agoFix assertion error when debug=yes and optimize=yes (#810)
yjf2002ghty [Wed, 10 Jul 2024 13:12:50 +0000]
Fix assertion error when debug=yes and optimize=yes (#810)

17 months agoUpdate mac-os for wheel build
Fabian Fichter [Tue, 9 Jul 2024 09:26:44 +0000]
Update mac-os for wheel build

17 months agopiece_to_partner (#802)
Bajusz Tamás [Mon, 8 Jul 2024 15:07:01 +0000]
piece_to_partner (#802)

17 months agoUpdate variants.ini
yjf2002ghty [Fri, 21 Jun 2024 11:48:53 +0000]
Update variants.ini

18 months agoSmall contribution on a compatible anti/giveaway variant
chocolatebakery [Sat, 1 Jun 2024 08:57:01 +0000]
Small contribution on a compatible anti/giveaway variant

18 months agoFix Mini House
yjf2002ghty [Sat, 1 Jun 2024 03:53:19 +0000]
Fix Mini House

19 months agoFix stack overflow when depth is too deep (#780)
yjf2002ghty [Mon, 29 Apr 2024 12:02:17 +0000]
Fix stack overflow when depth is too deep (#780)

19 months agoKhan's chess & Shinobi Chess+ (#778)
yjf2002ghty [Mon, 22 Apr 2024 16:47:10 +0000]
Khan's chess & Shinobi Chess+ (#778)

20 months agowallOrMove bug fix (#763)
RainRat [Wed, 17 Apr 2024 15:11:50 +0000]
wallOrMove bug fix (#763)

20 months agoBump ffish.js version
gbtami [Thu, 28 Mar 2024 11:14:13 +0000]
Bump ffish.js version

20 months agoBump pyffish version
gbtami [Mon, 25 Mar 2024 23:26:25 +0000]
Bump pyffish version

20 months agoAdd missing dragon promotion
gbtami [Mon, 25 Mar 2024 20:31:37 +0000]
Add missing dragon promotion

21 months agoHandle invalid promoted piece (#416)
Fabian Fichter [Fri, 1 Mar 2024 14:28:21 +0000]
Handle invalid promoted piece (#416)

21 months agoadd 'wall or move' rule (for Atlantis) (#728)
RainRat [Fri, 1 Mar 2024 13:01:13 +0000]
add 'wall or move' rule (for Atlantis) (#728)

21 months agoValidate max one king per side
Fabian Fichter [Fri, 1 Mar 2024 10:55:17 +0000]
Validate max one king per side

21 months agoAdd missing soldier promotion to cannonshogi
Bajusz Tamás [Mon, 26 Feb 2024 14:53:51 +0000]
Add missing soldier promotion to cannonshogi

21 months agoUpdate reference bench
Fabian Fichter [Fri, 23 Feb 2024 14:25:11 +0000]
Update reference bench

bench: 6180480

22 months agoBump version
QueensGambit [Sat, 17 Feb 2024 09:51:15 +0000]
Bump version

22 months agoBump pyffish version
Fabian Fichter [Fri, 16 Feb 2024 19:10:00 +0000]
Bump pyffish version

22 months agoFix cannonshogi (#757)
Fabian Fichter [Fri, 16 Feb 2024 18:42:26 +0000]
Fix cannonshogi (#757)

22 months agoadd Three Musketeers. needs collinearN and connectPieceTypes. (#755)
RainRat [Tue, 13 Feb 2024 12:49:27 +0000]
add Three Musketeers. needs collinearN and connectPieceTypes. (#755)

22 months agoFix Makefile for clang 16
Sebastian Buchwald [Sat, 11 Mar 2023 21:08:35 +0000]
Fix Makefile for clang 16

The clang 16 release will remove the -fexperimental-new-pass-manager
flag (see https://github.com/llvm/llvm-project/commit/69b2b7282e92a1b576b7bd26f3b16716a5027e8e).
Thus, the commit adapts the Makefile to use this flag only for older
clang versions.

closes https://github.com/official-stockfish/Stockfish/pull/4437

No functional change

22 months agofix typos
RainRat [Wed, 24 Jan 2024 23:14:46 +0000]
fix typos

23 months agoUse NNUE fallback URL for appveyor (#752)
Fabian Fichter [Sat, 23 Dec 2023 16:03:57 +0000]
Use NNUE fallback URL for appveyor (#752)

23 months agoUse subtests for better testing output
Fabian Fichter [Sat, 23 Dec 2023 14:26:05 +0000]
Use subtests for better testing output

23 months agoAdjudicate when board is full (#750)
Fabian Fichter [Sat, 23 Dec 2023 14:02:28 +0000]
Adjudicate when board is full (#750)

Closes #749.

23 months agoProvide network download fallback
Joost VandeVondele [Sat, 3 Sep 2022 09:03:09 +0000]
Provide network download fallback

in case the base infrastructure for providing the networks

https://tests.stockfishchess.org/nns

is down, use an alternate github repo for downloading networks during the build.

No functional change

2 years agoCfour-misere, per-color passing (#746)
RainRat [Sun, 26 Nov 2023 21:30:48 +0000]
Cfour-misere, per-color passing (#746)

2 years agoadd Gale (#724)
RainRat [Tue, 31 Oct 2023 10:26:38 +0000]
add Gale (#724)

and improve bitboard parsing

2 years agoadd La Mancha, Argess, 4 Kings Quasi Shatranj (#739)
RainRat [Wed, 25 Oct 2023 20:20:50 +0000]
add La Mancha, Argess, 4 Kings Quasi Shatranj (#739)

2 years agoUpdate wheels.yml (#742)
Bajusz Tamás [Wed, 25 Oct 2023 12:29:05 +0000]
Update wheels.yml (#742)

2 years agoAdd Cfour-anyside, Symphony, Teeko (#731)
RainRat [Tue, 24 Oct 2023 20:03:24 +0000]
Add Cfour-anyside, Symphony, Teeko (#731)

2 years agoadd Ajax Orthodox, Petty, Haynie (#730)
RainRat [Fri, 29 Sep 2023 08:43:19 +0000]
add Ajax Orthodox, Petty, Haynie (#730)

2 years agoflagPieceSafe, Squatter (#719)
RainRat [Tue, 26 Sep 2023 09:44:24 +0000]
flagPieceSafe, Squatter (#719)

2 years agoadd Edge Walling rule, suggesting refactor of Walling Rule, (#722)
RainRat [Thu, 21 Sep 2023 16:47:31 +0000]
add Edge Walling rule, suggesting refactor of Walling Rule, (#722)

2 years agoSupport petrified (#713)
Fabian Fichter [Fri, 15 Sep 2023 17:26:24 +0000]
Support petrified (#713)

2 years agoadd Snort (#721)
RainRat [Fri, 15 Sep 2023 17:10:53 +0000]
add Snort (#721)