#go #protocols #engine #text #hnefatafl #copenhagan #copenhagen

bin+lib hnefatafl-copenhagen

Copenhagen Hnefatafl engine similar to the Go Text Protocol

2 unstable releases

new 0.2.0 Jan 5, 2025
0.1.0 Jan 5, 2025

#289 in Game dev

Download history 240/week @ 2025-01-01

240 downloads per month

MIT/Apache

28KB
717 lines

Copenhagan Hnefatafl

githubcrates-iodocs-rs

WARNING: THIS IS A WORK IN PROGESS all the rules have not been implemented nor has it been thoroughly tested yet.

An engine similar to the Go Text Protocol.

This engine follows the Copenhagen Hnefatafl rules.

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 VERTEX_FROM VERTEX_TO, the color is whose turn it is
  • showboard -> show_board
  • time_settings none | time_settings fischer MINUTES ADD_SECONDS_AFTER_EACH_MOVE

Dependencies

~135KB