Crates.io | hnefatafl |
lib.rs | hnefatafl |
version | 0.0.1-alpha |
source | src |
created_at | 2024-11-04 00:07:21.023197 |
updated_at | 2024-11-04 00:07:21.023197 |
description | A crate for building software for the tafl family of board games |
homepage | |
repository | https://github.com/bunburya/hnefatafl-rs |
max_upload_size | |
id | 1434396 |
size | 795,585 |
hnefatafl
is a Rust crate intended to provide functionality for creating software related to the tafl family
of board games. It's an early WIP but the idea is that it will eventually provide structs and traits that encapsulate
game data and logic, hopefully helping to build games, AIs, etc.
Currently the crate includes a number of structs, traits and enums to describe various aspects of a tafl game:
Many of the most popular rule variants can be constructed, including Copenhagen Hnefatafl, Tablut, Brandubh and Sea Battle.
This crate is an early work in progress and I plan to add more features and expand support for the tafl family of games in future.
There are many different variants of tafl, and this crate does not support all possible rules. In particular, the "berserk" rules are not yet implemented, nor are any of the other variants which involve extra pieces beyond soldiers and the king.
Currently only boards up to 11x11 are supported (it is planned to add larger boards soon).