Petrel, about the engine:
This engine is not strong, fast, or simple. It is relatively stable enough to serve as a sparring opponent for a weak engine.
The source code may be interesting for chess programmers due to several novel chess data structures.
The engine uses neither mailbox nor bitboard board representations. The fundamental data structure is a 16-byte vector: a vector of bytes for each chess piece on one side of the chessboard.
The engine incrementally updates the attack table using a unique data structure— a matrix of pieces and bitboards. Each bitboard rank is stored separately in one of 8 piece vectors. This allows a very fast implementation of the attackTo() function and relatively fast updates of the attack table state. The engine uses the so-called Reversed BitBoard (aka Hyperbola Quintessence) method for generating attacks of sliding pieces (bishops, rooks, queens).
Fully legal moves are generated in bulk from the attack matrix.
During the chess tree search, the engine does not distinguish between white and black playing sides. The PositionSide class represents a chess side without color specificity. Internally, squares are relative to each side's base rank, so all pawns push from RANK_2 and promote at RANK_8, both kings start at E1 square, etc.
Zobrist hashing uses only a few keys per piece type, which rotate to generate a key for each square. Changing the position's move side to move (null move) is a byte-reversed operation. This Zobrist implementation allows hash transpositions with color changes.
Author: Aleks Peshkov
The previous version of Petrel 3.3.1 played in the chess league qualifiers, but did not advance to the TOP 64. We will see how this version fares in the 06/2026 edition.
Petrel 3.3.1 what's new?
Added bench command line parameter and UCI command. bench can have additional options valid for go command
Updated NN quantisation factors that improve evaluation precision.
Added Razoring and Reversed Futility Pruning upto depth 3.
More flexible and improved time management logic.
More aggressive Weak Moves Reductions (SEE) and prunings.
Better root moves ordering.
Change from 3.3:
Fixed time management calculation bug.
Petrel 3.3.1 JA vs other engines:
| Clockwork 20260320 | 3/6 | +0 | 6 games |
| Raid 6.1 | 1.5/6 | -3 | 6 games |
| DarkSeid 10.6 SE | 1.5/6 | -3 | 6 games |
| SF-POLY 210326 | 1.5/6 | -3 | 6 games |
| Artemis 28.4TR PrO | 1.5/6 | -3 | 6 games |
| Raphael 3.2.0 | 1/6 | -4 | 6 games |
| Stockfish dev-20260318 | 1/6 | -4 | 6 games |
| Stockfish 18 JA | 0.5/6 | -5 | 6 games |
| SF PB 200326 | 0.5/6 | -5 | 6 games |
| Hlamnick 200326 | 0/6 | -6 | 6 games |
| Revolution 5.0 030326 | 1/4 | -2 | 4 games |
| Bread Engine 3.0.0 | 1/4 | -2 | 4 games |
| Alexandria 9.0.0 JA | 0.5/4 | -3 | 4 games |
| HypnoS EN 2.0 | 0/4 | -4 | 4 games |
| Zeppelin 1.4.2 | 2/2 | +2 | 2 games |
| Tunguska 2.0 | 2/2 | +2 | 2 games |
| Allaya 1.5 | 2/2 | +2 | 2 games |
| BenBot 1.7.5 | 2/2 | +2 | 2 games |
| Tilt Engine 1.3 | 2/2 | +2 | 2 games |
| Chal 1.3.2 | 2/2 | +2 | 2 games |
| Solo 1.6.0 | 2/2 | +2 | 2 games |
Jim Ablett compiles:

Comments
Post a Comment