Tools for analyzing the game Kōnane.
This program is written in the Rust programming language. Official instructions to install Rust can be found at rust-lang.org/tools/install.
If you're unfamiliar with Rust, but want to take a look at the source code, the Rust Language Cheat Sheet may be helpful.
If you would like to help develop the program, you also need git, which we use for version control. Installation instructions for git can be found at git-scm.com/downloads.
The main repository is hosted in GitHub. To submit patches you'll need a GitHub account.
For basic git and GitHub usage, refer to
If you have git installed, download the source code by running
git clone [email protected]:ishehadeh/konjecture
Otherwise, you can download the source as a zip file from this here: main.zip.
Currently there is only one application: konane2canonical
.
This program takes a game of Konane and puts it in canonical form, using the cgt library. All games are played on a 16x16 grid.
Input: There should be a file in the program's working directory (usually you're executing it from) called konane.txt
.
An example of this file is included in with the source code. It should be 16 lines, each line with 16 characters, where
_
is an empty tilex
is a tile with white stoneo
is atile with black stone
Output: Here is a list of common outputs. Note all results assume perfect strategy.
- If the output is
> 0
, then black wins (o
) - If the output is
< 0
, then white wins (x
) - If the output begins with
*
than the first player to make a move wins - If the output is
0
the second player to make a move wins - See Wikipedia - Combinatorial Game Theory, Game Abbreviations for more
Run "konane2canonical" with the command:
cargo run --release --features cgt,rayon konane2canonical