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.

Pre-compiled version (releases) Source code (repository)

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:

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.

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:

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

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

  1. Download the .zip archive and extract it in full (right-click → "Extract all…"). Do not run tafl directly from the ZIP archive.
  2. In the extracted folder, start tafl_gui.exe with a double-click – no installation is required.
  3. 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:

  1. In the warning, click "More info".
  2. 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:

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

  1. Download the matching .tar.gz archive and extract it: tar -xzf tafl-<version>-<target>.tar.gz
  2. Change into the extracted folder and start tafl – in one of two ways: * AppImage (recommended): the .AppImage file already bundles the required runtime libraries, so that as a rule no additional system installation is needed. Make it executable with chmod +x tafl-<architecture>.AppImage and start it with ./tafl-<architecture>.AppImage. * tafl_gui: the raw, dynamically linked program file without the AppImage wrapper. It needs GTK3/X11/libxkbcommon runtime 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:

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).

  1. Clone the source code repository:

text git clone https://gitlab.com/tafl-world/tafl.git cd tafl

  1. 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.

  1. 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

  1. Start the program (see above). By default, tafl opens a human-versus-human game of Copenhagen Hnefatafl.
  2. Choose the game mode (configuration footer below the board): "Human vs. human", "AI = attacker", "AI = defender" or "AI vs. AI".
  3. Moving: click one of your pieces, then click its destination square.
  4. Try another variant: select "Choose variant…" in the header bar; the available variants are grouped by game family.
  5. 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

Contact for bug reports and feedback: see below.

Licence information

The choice of licence for tafl is a deliberate, final decision:

Contact for bug reports and feedback

Two channels are available for enquiries and feedback:

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.