GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - LesterEvSe/AteNika: A UCI chess engine written from scratch in C++23. SPRT-tested. ~3100 Elo

BranchesTags
Open more actions menu

Latest commit

 

History

333 Commits
333 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.vscode
.vscode
 
 
assets
assets
 
 
matches
matches
 
 
nets
nets
 
 
src
src
 
 
tests
tests
 
 
trainer
trainer
 
 
.clang-format
.clang-format
 
 
.clang-tidy
.clang-tidy
 
 
.gitignore
.gitignore
 
 
CMakeLists.txt
CMakeLists.txt
 
 
CMakePresets.json
CMakePresets.json
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
check.sh
check.sh
 
 
run.sh
run.sh
 
 
spdx.sh
spdx.sh
 
 
test.sh
test.sh
 
 

Repository files navigation

AteNika

AteNika

A UCI chess engine written in C++23

License: GPL v3 CI Release GitHub Release Elo

AteNika plays chess over UCI with no graphical interface of its own, and has no dependencies beyond GoogleTest for the test build.

Briefly about the name. AteNika are the names of two ancient Greek goddesses Athena, who was the patroness of wisdom, strategy, justice and war defense, and Nika (or Nike), which is literally translated from Greek "Victory", she was the ancient Greek goddess of victory and triumph.

Strength

More detailed in CCI AteNika Rate. Full history in matches/LADDER.md.

Version Published STC 8.0+0.08s LTC 60.0+0.60s VLTC 2m24s+1.12s
0.7.0 2026-09-20 2728 3090 3139
0.6.0 2026-09-13 2674 3005 3078
0.5.0 2026-09-02 2040 2317 2350

Features

Board and move generation: bitboards with magic sliding attacks, make/unmake against a history stack, incremental Zobrist hashing, and pin-aware legal move generation.

Search: fail-soft negamax with a triangular PV table, aspiration windows, and a transposition table with depth-preferred replacement and a generation counter. Pruning and reductions: late move reductions with history-based relief, reverse futility, futility, internal iterative reduction, and adaptive null-move R. Move ordering uses the TT move, MVV-LVA, killers and butterfly history with gravity aging. Quiescence generates captures only, plus check evasions, filtered by SEE and delta pruning. Time management runs separate soft and hard limits with best-move stability and score-drop detection.

Evaluation: NNUE a (768 -> 1024)x2 -> 1 network with SCReLU activation. Evaluation runs through an AVX2 path with a scalar fallback. The network is trained with bullet, see trainer/.

Build

Prebuilt binaries for Linux and Windows (x86-64 with AVX2) and macOS (arm64) are attached to every release.

Requires a C++23 compiler (GCC 14+, Clang 18+, MSVC 19.39+) and CMake 3.25+. Linux, Windows and macOS are built and tested on every PR, plus a run under AddressSanitizer and UndefinedBehaviorSanitizer.

cmake --preset release
cmake --build --preset release
./build/release/AteNika

The release preset targets x86-64-v3 (AVX2). To embed a different network, point ATENIKA_NET at it and set ATENIKA_HIDDEN to its hidden layer width:

cmake --preset release -DATENIKA_NET=/path/to/net.nnue -DATENIKA_HIDDEN=512

Usage

UCI options:

option default what it does
Hash 16 transposition table size in MB, 1 to 1024
Ponder false think on the opponent's time
EvalFile <embedded> load a network of the same architecture from a file; on failure an info string is printed and the current net stays

Non-UCI commands for development:

command what it does
d print the current position
state verbose board dump plus the current search limits
eval static evaluation of the current position
bench [n] fixed position set at fixed depth n, reported as one node count
perft [divide] <n> node counts, divide matching Stockfish's go perft format
datagen <nodes> <positions> <seed> <out> self-play training data, fen | score | result per line
relabel <nodes> <in> <out> re-search every position of a datagen file, keeping its result
e2e4 e7e5 ... play moves in coordinate notation on the current position
help list every command

bench is the behaviour fingerprint: any change meant to preserve behaviour must leave its node count bit-identical.

Development

Tests

cmake --preset tests && cmake --build --preset tests --parallel
ctest --preset tests     # everything
ctest --preset fast      # excludes perft

test.sh is the shortcut for single tests and takes a GoogleTest filter:

bash test.sh 'Board*'    # one fixture
bash test.sh -l          # list tests

The verify preset is the same suite with the Zobrist key and the NNUE accumulator recomputed after every make():

cmake --preset verify && cmake --build --preset verify --parallel
ctest --preset verify
printf 'bench\nquit\n' | ./build/verify/AteNika    # the same, over more positions

Format and lint

The equivalent of cargo fmt + cargo clippy. Needs clang-format and clang-tidy:

bash check.sh            # reformat in place, then lint
bash check.sh -n         # report only, what CI runs

CI pins clang-format 18.1.8, and a different patch level reformats the tree differently. Match it locally:

pipx install clang-format==18.1.8

Engine-vs-engine testing

Every change that alters what the engine plays is accepted or rejected by SPRT, never by intuition. The tooling lives in matches/; binaries, opponents and opening books are not tracked and must be set up locally.

Training a network

Data comes from datagen (or relabel on an existing set), the trainer in trainer/ turns it into quantised.bin, and the result is copied to nets/atenika.nnue, where the build embeds it.

Credits

Code and ideas

  • Shallow Blue — heavily, in the early stages
  • Stockfish
  • Stash-bot — the reference ladder for testing
  • bullet — the NNUE trainer

Reference

  • Chess Programming Wiki
  • Renegade chess engine training data
  • The Computer Chess Index (CCI)

License

GPL-3.0-or-later. See LICENSE.

About

A UCI chess engine written from scratch in C++23. SPRT-tested. ~3100 Elo

Topics

alpha-beta-pruningavx2bitboardchesschess-aichess-enginecppcpp23game-aimachine-learningnegamaxneural-networknnuequantizationsimdtransposition-tableuci

Resources

Readme
GPL-3.0 license
Activity

Stars

6 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.