#board-game #bitboard #associated #playing #collection #abstract #strategy

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

#353 in Game dev

Download history 30/week @ 2024-01-11 27/week @ 2024-02-22 9/week @ 2024-02-29 1/week @ 2024-03-07 8/week @ 2024-03-14 18/week @ 2024-03-28 13/week @ 2024-04-04 31/week @ 2024-04-11

62 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

~330–800KB
~18K SLoC