#board-game #protocols #hnefatafl #tafl #copenhagan

bin+lib hnefatafl-copenhagen

Copenhagen Hnefatafl client, engine, and server

23 releases (12 breaking)

Uses new Rust 2024

new 0.13.4 Apr 21, 2025
0.13.0 Mar 27, 2025

#192 in Game dev

Download history 178/week @ 2024-12-30 73/week @ 2025-01-06 122/week @ 2025-01-13 99/week @ 2025-01-20 675/week @ 2025-02-03 64/week @ 2025-02-10 299/week @ 2025-02-17 162/week @ 2025-02-24 19/week @ 2025-03-03 448/week @ 2025-03-10 583/week @ 2025-03-17 230/week @ 2025-03-24 30/week @ 2025-03-31 20/week @ 2025-04-07 103/week @ 2025-04-14

454 downloads per month

MIT/Apache

2.5MB
7.5K SLoC

Copenhagen Hnefatafl

githubcrates-iodocs-rs

An engine similar to the Go Text Protocol, a client, and a server.

Differences from the Go Text Protocol

  • The character set is UTF-8.
  • clear_board -> reset_board
  • genmove -> generate_move
  • generate_move returns COLOR VERTEX_FROM VERTEX_TO
  • We keep track of whose turn it is.
  • play takes play COLOR VERTEX_FROM VERTEX_TO or play COLOR resigns and returns = CAPTURES, where CAPTURES has the format a2 c2 .... The color is whose turn it is.
  • showboard -> show_board
  • time_settings none | time_settings fischer MINUTES ADD_SECONDS_AFTER_EACH_MOVE
  • final_status_list -> final_status = black_wins | draw | ongoing | white_wins

Website

See the website for more information about downloading and building the software.

Rules

See the Rules for how to play.

Icon

The icon used for the flathub version of the hnefatafl-client was created by Marvin T. @marvintubat123.

Packaging Status

0.13.4 AUR
0.13.4 crates.io
0.13.4 chocolatey.org
0.13.4 deb
0.13.4 flathub.org

Contributors

rocks

Made with contrib.rocks.

Dependencies

~5–44MB
~709K SLoC