Toolset for 5D Chess computer-aided analysis written in Rust
Programming set of tools to analyze 5D Chess games.
*Note: you are currently seeing an old, unmaintained version of this library.
The library is currently being rewritten in its entirety as part of the 0.2
update.
You can see and contribute to its progress over on the v2
branch!*
Clone this repository:
git clone https://github.com/adri326/5dchess-tools/
cd 5dchess-tools
Then build or run it using cargo
:
cargo run path/to/game.json
The current, included executable will read a JSON file (outputted by this parser) and proceed to run calculations on it.
Add the following to your Cargo.toml
:
[dependencies.chess5dtools]
version = "0.1"
git = "https://github.com/adri326/5dchess-tools"
You can then import the different modules in your code, for instance:
use chess5dlib::game::*;
The library half of this tool is labelled as chess5dlib
(the executable and package chess5dtools
).
chess5dlib::game
(/lib/game.rs
).chess5dlib::moves
(/lib/moves.rs
).chess5dlib::moveset
(/lib/moveset.rs
).chess5dlib::resolve
(/lib/resolve.rs
, might be renamed later)chess5dlib::tree
This game can reach very complex states (multi-dimensional series of checks, having to create several timelines in a specific order, etc.).
Soundness over checkmate proof is complicated to achieve and has been found to sometimes be extremely computationally expensive.
It could be very expensive to list out all of the possible movesets (sets of moves per turn), thus the algorithms here are based around a lazy method of generating these movesets.
This method relies on a two-pass analysis of the moves: