Download & installation
Precompiled versions of tafl are available for Windows and Linux, and the source code is open. You can also play directly in your browser on the play page, without installing anything.
Purpose of this document
This document explains how to get tafl running and how to take your first steps.
Status: Applies to version 1.0.2.
Requirements
There are two ways to get tafl running: download a precompiled version (no Rust installation needed, see "Using a precompiled version" below) or build it from source (see "Building from source" below). Building from source requires:
- A stable Rust toolchain, version 1.85 or later (the project uses Rust edition 2024). Install it via rustup.rs, on any operating system.
- Git, to clone the source code repository.
The program is built and tested for Windows and Linux. On macOS there is no precompiled version; the graphical interface does use the platform-independent Rust framework egui/eframe, but a macOS build is only possible from source code and is untested (see below). The AppImage for Linux on ARM (aarch64) is untested.
Using a precompiled version (recommended for most users)
Download a ready-to-run version if you prefer not to install the Rust toolchain or build tafl from source.
Download: https://gitlab.com/tafl-world/tafl/-/releases
A release consists of archives that must be fully extracted before tafl is started. Each archive contains a root folder (e.g. tafl-<version>-windows-x86_64/) in which all files lie together:
tafl-<version>-windows-x86_64.zip– for Windows (64-bit)tafl-<version>-x86_64-unknown-linux-gnu.tar.gzandtafl-<version>-aarch64-unknown-linux-gnu.tar.gz– for Linux desktops with a graphical interface (x86_64 or ARM)tafl-<version>-x86_64-unknown-linux-musl.tar.gzandtafl-<version>-aarch64-unknown-linux-musl.tar.gz– statically linked Linux archives withtafl_serverand the command-line tools (see "Command-line tools" below), but withouttafl_gui; they are not needed for normal play on the desktopTHIRD-PARTY-LICENSES.html– licences of all dependencies usedSHA256SUMS– checksums of all archives (see "Verifying the download" below)
If you are unsure which file to choose, use the .zip archive on Windows or the gnu archive matching your processor architecture on Linux. Run uname -m to identify the architecture (x86_64 or aarch64).
What the archive contains
- the executable programs: in the Windows and
gnuarchivestafl_guiortafl_gui.exetogether withtafl_server(on Linux additionally the AppImage), in themuslarchives onlytafl_server; in addition, in the Windows andmuslarchives the command-line tools, - the file
THIRD-PARTY-LICENSES.htmlwith the licences of the dependencies used, - the documentation: this manual (
docs/manual/) and the technical documentation including all rules guides (docs/software/).
Program and documentation must stay next to each other: the Docs tab of the GUI reads the rules guides from docs/software/00_game_rules/ next to the program file, and "Start local server?" in the multiplayer dialog needs tafl_server. So always start tafl from the extracted folder and do not copy the files out individually.
Windows
- Download the
.ziparchive and extract it in full (right-click → "Extract all…"). Do not run tafl directly from the ZIP archive. - In the extracted folder, start
tafl_gui.exewith a double-click – no installation is required. - Windows may display a SmartScreen warning the first time you run the program.
Note on the icon: If an older version of tafl is pinned to the taskbar, Windows may continue to display the old icon because of its icon cache. Unpin tafl and then pin it again to refresh the icon.
Warning "Windows protected your PC" (SmartScreen)
On the first start of tafl_gui.exe, Windows Defender SmartScreen may show a blue warning. Cause: the program file is not code-signed, so Windows warns about programs from unknown publishers. The warning alone does not tell you whether a file is safe or not. You should therefore download tafl only from the release page given above and check the checksum (see next section) before you run the file.
To start the program anyway:
- In the warning, click "More info".
- The button "Run anyway" then appears – click it.
The program file is currently not code-signed; that is why the warning appears. Checksums (see next section) protect against transmission errors, not against deliberate tampering. Running the file despite the warning is at your own risk.
Verifying the download (checksums)
Each release includes the file SHA256SUMS, which lists the SHA-256 checksum of each archive. Save the archive and SHA256SUMS in the same folder, then run the appropriate command there:
- Windows (PowerShell):
Get-FileHash .\tafl-<version>-windows-x86_64.zip -Algorithm SHA256– the value printed must match the line for this archive inSHA256SUMS. Alternatively, in the Command Prompt:certutil -hashfile tafl-<version>-windows-x86_64.zip SHA256. - Linux:
sha256sum -c SHA256SUMS --ignore-missing–OKmust appear for every archive present.
If the value differs, download the file again and do not run it. The checksum detects damaged downloads; it does not protect against deliberate tampering in which SHA256SUMS was also changed.
Linux
- Download the matching
.tar.gzarchive and extract it:tar -xzf tafl-<version>-<target>.tar.gz - Change into the extracted folder and start tafl – in one of two ways:
* AppImage (recommended): the
.AppImagefile already bundles the required runtime libraries, so that as a rule no additional system installation is needed. Make it executable withchmod +x tafl-<architecture>.AppImageand start it with./tafl-<architecture>.AppImage. *tafl_gui: the raw, dynamically linked program file without the AppImage wrapper. It needs GTK3/X11/libxkbcommonruntime libraries already installed on the system – for most users the AppImage is therefore the easier way.
The x86_64 AppImage has been tested. The aarch64 (ARM) version is also built, but is untested; please report any problems (see the contact details below).
Command-line tools (for advanced users)
The Windows and musl archives contain, besides the game itself, eight command-line programs that run without a graphical interface:
benchmark_baseline– benchmarks the AI across all variantsevaluate_position– evaluates a single positionrandom_selfplay– runs self-play games using random movessprt_gate,weights_sprt_gate,nnue_sprt_gate– compare two AI configurations statistically using SPRTspsa_tune– automatically tunes evaluation weightsexport_selfplay_dataset– exports self-play data
They are internal tools without a stability promise: call options and output formats can change from version to version. They are not needed for playing. Anyone who wants to use them will find purpose and options in the technical documentation in the source code repository (section "Tools" of the engine documentation).
macOS
There are no precompiled macOS binaries. On macOS only building from source remains possible (see below); it is untested and unsupported: a build may succeed, but it is not currently checked. Bug reports are welcome, but fixes are not guaranteed.
Licence note
Each archive contains a file THIRD-PARTY-LICENSES.html with the licences of all dependencies used (see "Licence information" below).
Building from source
For anyone who would rather build it themselves – for example for a platform without a precompiled binary (see macOS above, source code only there, untested) or to use a development version. You get a standalone program file with cargo build --release; the result then lies under target/release/ (tafl_gui or tafl_gui.exe).
- Clone the source code repository:
text
git clone https://gitlab.com/tafl-world/tafl.git
cd tafl
- Build and launch the graphical interface:
text
cargo run --release -p tafl_gui
The first run takes longer because the project must be compiled. Subsequent launches are much quicker.
- Alternatively, build the executable without launching it:
text
cargo build --release -p tafl_gui
The resulting executable is located at target/release/tafl_gui (target\release\tafl_gui.exe on Windows). You can run it directly again without recompiling.
--release is recommended: without it, the program runs noticeably slower, especially when playing against the AI.
Quick start: your first game
- Start the program (see above). By default, tafl opens a human-versus-human game of Copenhagen Hnefatafl.
- Choose the game mode (configuration footer below the board): "Human vs. human", "AI = attacker", "AI = defender" or "AI vs. AI".
- Moving: click one of your pieces, then click its destination square.
- Try another variant: select "Choose variant…" in the header bar; the available variants are grouped by game family.
- Support from the coach: in the "Coach" dock tab, you can enable an explanation of the last move or a suggestion for the next move, whether or not an AI opponent is playing.
Unfamiliar terms (throne, corner escape, berserker chain, …) are explained in Glossary (this folder), frequently asked questions in FAQ.
Further documentation
- Detailed user manual (all operating areas): the bundled program documentation
- What is Hnefatafl? Introduction for newcomers: What is Hnefatafl?
- Terms: Glossary; frequently asked questions: FAQ
- Overview of all supported game variants: Variant lexicon
- Known limitations: Known limitations
- How the blended AI opponent works: the bundled program documentation
- Complete, technical description of all GUI areas (for technically interested readers): technical documentation on the GUI in the source code repository
- How the project came about and what it is currently working on: the bundled program documentation
Contact for bug reports and feedback: see below.
Licence information
The choice of licence for tafl is a deliberate, final decision:
- Source code (
crates/): dual licenceMIT OR Apache-2.0– free to use, modify and embed, also commercially and also in closed projects. Full texts:LICENSE-MITandLICENSE-APACHEin the project root. - Documentation (
docs/, including this manual): Creative Commons Attribution 4.0 International (CC BY 4.0) – free to share and adapt, also commercially, as long as authorship is credited. Third-party texts, namely every section titled "Spielregeln (Original)" indocs/software/00_game_rules/and the pages derived from them, as well as quotations and cited excerpts anywhere indocs/, remain subject to the copyright of their authors (or to their public-domain status). They are reproduced unchanged with the permission of the rights holders, or because they are in the public domain, under the conditions stated where they appear, and are NOT licensed under CC BY 4.0. Whoever reuses them must obtain permission from the original rights holders. Full text:LICENSE-DOCSin the project root. - Rights holder: Marcus Lipski.
- Excluded: The directory
research/(historical research notes, partly translations/excerpts of copyrighted secondary literature by third parties) is deliberately not part of this licensing and is not published – it is an internal working directory. The findings derived from it do, however, flow into the licensed documentation (docs/) where relevant.
Contact for bug reports and feedback
Two channels are available for enquiries and feedback:
- General inquiries: kontakt@tafl.world
- Bug reports and feature requests: GitLab issue tracker of the
taflrepository
Summary
tafl can either be downloaded as a precompiled archive (ZIP on Windows, .tar.gz on Linux, see "Using a precompiled version" above; also notes there on the Windows SmartScreen warning and on checking the checksums) or started from source code with cargo run --release -p tafl_gui. After starting, you can play a game right away, change the game variant and game mode (human/AI) and switch on the coach for support. Licence information is final; for bug reports and feedback, kontakt@tafl.world and the GitLab issue tracker are available.