diff options
| author | tslil clingman <> | 2020-03-07 21:35:22 -0800 |
|---|---|---|
| committer | tslil clingman <> | 2020-03-07 21:35:22 -0800 |
| commit | e630098b578ace239663512dbde942bc9b111e96 (patch) | |
| tree | e48992dd715e1596d0975ad19de73021f92c9a97 | |
| parent | f68e7b59a08b3c211b6eeff70f7346d4d1e71a66 (diff) | |
Added readme
| -rw-r--r-- | README.org | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/README.org b/README.org new file mode 100644 index 0000000..28593c5 --- /dev/null +++ b/README.org @@ -0,0 +1,46 @@ +* A TUI wrapper for local play of the game of Tak + +** Building + +Clone the repo, issue `cargo build` or and enjoy (?) + +** Usage + +Takwrap supports local play, undo, and starting variant and game +exporting to PTN. See `takwrap -h` for options and details. + +Note in particular that `takwrap` supports the following alternate +starting configurations, which are embedded in the exported PTN file +as `[Variant XXX]`. + +- CPSn, counter-play start with n=1 is the default + White places a black flat, then black places a white flat. This + repeats n times, after which normal play resumes. + +- FCS, forbidden corner start + CPS1 but white may not place the black flat in a corner + +- FES, forbidden edge start + CPS1 but white may not place the black flat on an edge + +- TPS, two ply start + White places two black flats, then black places a white flat and + normal play resumes. + +- CZS, Czech start + White places a black flat, then normal play resumes + +** Interfacing with engines + +Takwrap does not have computer opponents built in, but instead allows +interfacing with external engine programmes with the `-e` parameter. +It expects the name of an executable in the path which accepts the +name of a file with a game-state in PTN, and which returns a single, +valid move. + +See the file `wrap_taktician` for an example of utilising [[https://github.com/nelhage/taktician][Taktician]] +for this purpose. + +Note that the engine is expected to respect the `[Variant XXX]` line +in the PTN game-state, so expect breakage with anything but the +default. |
