Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

AI

Artifcial Intelligence

I adapted TaflZero to my server. It is based off of AlphaGoZero by Google. You can run it via taflzero on the Arch, Debian, and Fedora installs, or via the source package. See --help for what options you can pass it.

You’ll have to create an account for it first on whatever server you will be running it on. Run hnefatafl-client and log onto the server. Then, Create an account for your AI, prefixing the username with ai-taflzero.

It can also be run as a service. Edit the file /etc/hnefatafl-ai-attacker.conf or /etc/hnefatafl-ai-defender.conf and add

USERNAME=username
PASSWORD=password

Don’t prefix the USERNAME with ai-taflzero here.

Then run

sudo systemctl start hnefatafl-ai-attacker

or

sudo systemctl start hnefatafl-ai-defender

If you want to change the settings for the AI further, you can edit /usr/lib/systemd/system/hnefatafl-ai-attacker.service or /usr/lib/systemd/system/hnefatafl-ai-defender.service and change the value of ExecStart.

Copyright © 2026 David Lawrence Campbell