jhonnold /berserk

UCI Chess Engine written in C

★ 299⑂ 45👁 11⑃ 546● 64▤ 33
CGPL-3.0Created 2021-02-14
下载:Berserk 14Berserk-14 ↓142026-05-24
+0
日增长
299
stars
45
forks
11
watchers
546
prs
64
issues
33
releases

README

!AUR version

 Berserk Chess Engine



A UCI chess engine written in C. Feel free to challenge me on Lichess!

 Strength

 Rating Lists + Elo

Many websites use an Elo rating system to present relative skill amongst engines.
Below is a list of many chess engine lists throughout the web (variance in Elo is due to different conditions for each list)

 CCRL 40/15 - 3514 4CPU, 3480 1CPU
 CCRL 40/2 - 3667 1CPU
 IpMan Chess - 3547 1CPU
 CEGT - 3598 1CPU
 SPCC - 3733 1CPU
 ~~FGRL - 3518 1CPU~~
   List no longer maintained

 Tournaments/Events with Berserk

- TCEC
- CCC
- Graham's Broadcasts

 Functional Details

 Board Representation and Move Generation

- Bitboards
  - Magic Bitboards
- Staged Move Gen

 Search

- Negamax
  - PVS
- Quiescence
- Iterative Deepening
- Transposition Table
- Aspiration Windows
- Internal Iterative Reductions
- Reverse Futility Pruning
- Razoring
- Null Move Pruning
- ProbCut
- FutilityPruning
  - LMP
- History Pruning
- SEE
  - Static Exchange Evaluation Pruning
- LMR
- Killer Heuristic
- Countermove Heuristic
- Extensions
  - Singular

 Evaluation

- NNUE
  - Horizontally Mirrored 16 King Buckets (12288 inputs)
  - Threat Inputs (60144 features)
  - 2x(12288 + 60144 - 512) - Pairwise - 512 - 16 - 32 - 32 - 1
  - Clamped + Squared activations, 8 Output Buckets (by piece count)
- Berserk FenGen
- bullet
  - The current trainer for all networks.
- ~~Grapheus~~
  - No longer in use, replaced by bullet.
- ~~Koivisto's CUDA Trainer~~
  - No longer in use, replaced by Grapheus and later bullet.
- ~~Berserk Trainer~~
  - This has been deprecated in favor of Koivisto's trainer, but trained all networks through Berserk 8.5.1+

 Building

bash
git clone https://github.com/jhonnold/berserk && \
cd berserk/src && \
make pgo CC=clang && \
./berserk


 Credit

This engine could not be written without some influence and they are...

 Engine Influences

- Stockfish
- Ethereal
- Koivisto
- Weiss
- Chess22k
- BBC
- Cheng

 Additional Resources

- bullet
- Grapheus
- Koivisto's CUDA Trainer
- OpenBench
- TalkChess Forum
- CCRL
- JCER
- Cute Chess
- Arena
- CPW
- Lars in Grahams Broadcast rooms

Top issues

Latest release

Berserk 14 14 2026-05-24
Berserk 14

Berserk 14 is officially available!

 ⚠️ About these binaries: The attached .exe files are cross-compiled from Linux with mingw-w64 and are _not_ PGO-optimized. They will run correctly but are slower than a native, profile-guided build. For best performance you are strongly encouraged to compile your own native binary (instructions below), it tunes the build to your exact CPU.

 Build it yourself (recommended)

bash
git clone https://github.com/jhonnold/berserk
cd berserk/src
make pgo CC=clang ARCH=native
./berserk bench


make pgo produces a profile-guided, native-t

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON