#board-game #bitboard #toolkit

tokyodoves

A library of an efficient board of Tokyo Doves and associated toolkits

11 releases (3 stable)

1.0.2 Jan 11, 2024
0.1.7 Aug 12, 2023
0.1.6 Jul 30, 2023

#612 in Game dev

Download history 30/week @ 2024-07-28 10/week @ 2024-09-22 3/week @ 2024-09-29

52 downloads per month

MIT license

360KB
5.5K SLoC

Tokyodoves

Tokyodoves is a library of an efficient board of Tokyo Doves and associated toolkits. Tokyo Doves is an abstract strategy board game for two players. See the following pages for its rules.

The board is implemented with the bitboard technique, which allows for extremely fast operations including moving, putting and removing pieces.

Documentation

Documentation is hosted on docs.rs

Alternatively, see an auto-generated documentation on the repository.

Features

This crate provides three types of features:

  • default (indicate nothing): use only basic entities to play the game
  • game: use convenient entities for playing games additionally
  • analysis: use tools for analysis and some collections additionally

Note that, if you indicate feature = "analysis", your program also uses those that are included when feature = "game".

See the documentation for details.

Usage

Simply run:

cargo add tokyodoves

or add an option to select features:

cargo add tokyodoves --features analysis

Alternatively, add this to your Cargo.toml:

[dependencies]
tokyodoves = "1.0.2"

or

[dependencies]
tokyodoves = { version = "1.0.2", features = ["analysis"] }

if you want to use feature "analysis".

Dependencies

~295–770KB
~17K SLoC