Rust hnefatafl library crate

Post Reply
Ailill
Posts: 5
Joined: Tue Aug 15, 2023 4:14 pm

Rust hnefatafl library crate

Post by Ailill » Sun Jan 05, 2025 9:48 pm

I have been working on a library crate for the Rust programming language that would assist with creating hnefatafl-related software in Rust.

It is available on crates.io and you can also view the docs to see how to get started with it. It is MIT licensed and the source code is available on GitHub.

Just sharing it here in case anyone finds it useful. Currently berserk rules and pieces other than king and soldier are not implemented. In a future release I would like to add support for them as well as functions for integrating with other tafl engines like OpenTafl.

I put together a very basic demo application so you can see it in action. You can play the demo here and the source code for the demo is also available on GitHub. (The AI is not very strong, it's really just intended as a basic demonstration of the kind of thing that can be built with the library. The AI is not a part of the hnefatafl crate but of course the crate could be used to build a stronger AI.)

Post Reply