11 releases (3 stable)
1.0.2 | Jan 11, 2024 |
---|---|
0.1.7 | Aug 12, 2023 |
0.1.6 | Jul 30, 2023 |
#506 in Game dev
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.
- A rule book in Japanese:
https://image.gamemarket.jp/2019/11/v160.pdf - A rule book in English:
https://www.daiso-syuppan.com/wp-content/uploads/2021/02/TOKYO-DOVES.pdf - A video explaining the rules on YouTube (Japanese):
https://www.youtube.com/watch?v=SsyoqnipHWQ
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
~0.3–0.8MB
~18K SLoC