EDPSYYMBK7AAKEN7Q5JZV7V3PFGMM777O6T37RJZRYWDENSXZ4JAC ## Cargo (Linux, macOS, Windows) [![crates-io]][crates-io-link]### Dependencies (Linux)ALSA development files are needed to build `cpal` on Linux (`rodio` dependency,`hnefatafl-client` dependency). These are provided as part of the`alsa-lib` package on Arch, `libasound2-dev` package on Debian and Ubuntu, and`alsa-lib-devel` on Fedora.The package uses the `mold` linker. This is provided via the `mold`package on Arch, Debian, Ubuntu, and Fedora.### RunIn your terminal run the following to run the client with [Rust's] cargo:```shcargo install hnefatafl-copenhagenhnefatafl-client```[crates-io]: https://img.shields.io/crates/v/hnefatafl-copenhagen.svg[crates-io-link]: https://crates.io/crates/hnefatafl-copenhagen[Rust's]: https://www.rust-lang.org/learn/get-started
## Cargo (Linux, macOS, Windows) [![crates-io]][crates-io-link]### Dependencies (Linux)ALSA development files are needed to build `cpal` on Linux (`rodio` dependency,`hnefatafl-client` dependency). These are provided as part of the`alsa-lib` package on Arch, `libasound2-dev` package on Debian and Ubuntu, and`alsa-lib-devel` on Fedora.The package uses the `mold` linker. This is provided via the `mold`package on Arch, Debian, Ubuntu, and Fedora.### RunIn your terminal run the following to run the client with [Rust's] cargo:```shcargo install hnefatafl-copenhagenhnefatafl-client```[crates-io]: https://img.shields.io/crates/v/hnefatafl-copenhagen.svg[crates-io-link]: https://crates.io/crates/hnefatafl-copenhagen[Rust's]: https://www.rust-lang.org/learn/get-started
[github]: https://img.shields.io/badge/github-8da0cb?logo=github[github-link]: https://github.com/dcampbell24/hnefatafl[README.md]: https://github.com/dcampbell24/hnefatafl?tab=readme-ov-file#building-and-running
```shgit clone https://github.com/dcampbell24/hnefatafl.git# orgit clone https://codeberg.org/dcampbell/hnefatafl.git
At the moment their may be fairly regular updates. If you run into problems,make sure you are running the latest version.
You can pass `-- --help` to any of the following commands to get all of theruntime options.Then you can run the engine with:```shcargo run --release --bin hnefatafl-text-protocol -- --display-game```or you can start a local server:```shcargo run --release```and run a local client:```sh# On Windows pass to cargo `--features console` to see console output.# Pass to cargo `--features debug` to enable iced debugging.cargo run --release --bin hnefatafl-client -- --host localhost```[dependencies]: https://hnefatafl.org/install.html#dependencies-linux[github]: https://img.shields.io/badge/GitHub-111111?logo=github[github-link]: https://github.com/dcampbell24/hnefatafl[codeberg]: https://img.shields.io/badge/Codeberg-eeeeee?logo=codeberg[codeberg-link]: https://codeberg.org/dcampbell/hnefatafl[Rust]: https://rust-lang.org/learn/get-started/
[github]: https://img.shields.io/badge/GitHub-111111?logo=github[github-link]: https://github.com/dcampbell24/hnefatafl[codeberg]: https://img.shields.io/badge/Codeberg-eeeeee?logo=codeberg[codeberg-link]: https://codeberg.org/dcampbell/hnefatafl
First you need to install [Rust]. Then:```shgit clone https://github.com/dcampbell24/hnefatafl.gitcd hnefatafl```You can pass `-- --help` to any of the following commands to get all of theruntime options.Then you can run the engine with:```shcargo run --release --bin hnefatafl-text-protocol -- --display-game```or you can start a local server:
```sh# On Windows pass to cargo `--features console` to see console output.# Pass to cargo `--features debug` to enable iced debugging.cargo run --release --example hnefatafl-client -- --host localhost```If you are running on Linux, you'll need some dependencies as [described] on the[website].[Rust]: https://rust-lang.org/learn/get-started/[described]: https://hnefatafl.org/install.html#dependencies-linux[website]: https://hnefatafl.org