aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md (renamed from README.org)27
-rwxr-xr-xwrap_taktician2
2 files changed, 17 insertions, 12 deletions
diff --git a/README.org b/README.md
index 28593c5..a01db3f 100644
--- a/README.org
+++ b/README.md
@@ -1,10 +1,10 @@
-* A TUI wrapper for local play of the game of Tak
+# A TUI for local play of the game of Tak
-** Building
+## Building
-Clone the repo, issue `cargo build` or and enjoy (?)
+Clone the repo, issue `cargo build` and enjoy (?)
-** Usage
+## Usage
Takwrap supports local play, undo, and starting variant and game
exporting to PTN. See `takwrap -h` for options and details.
@@ -13,24 +13,29 @@ 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
+- 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
+- FCS, forbidden corner start.
+
CPS1 but white may not place the black flat in a corner
-- FES, forbidden edge start
+- FES, forbidden edge start.
+
CPS1 but white may not place the black flat on an edge
-- TPS, two ply start
+- TPS, two ply start.
+
White places two black flats, then black places a white flat and
normal play resumes.
-- CZS, Czech start
+- CZS, Czech start.
+
White places a black flat, then normal play resumes
-** Interfacing with engines
+## Interfacing with engines
Takwrap does not have computer opponents built in, but instead allows
interfacing with external engine programmes with the `-e` parameter.
@@ -38,7 +43,7 @@ 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]]
+See the file `wrap_taktician` for an example of utilising [Taktician](https://github.com/nelhage/taktician)
for this purpose.
Note that the engine is expected to respect the `[Variant XXX]` line
diff --git a/wrap_taktician b/wrap_taktician
index f61fe12..c0ec20a 100755
--- a/wrap_taktician
+++ b/wrap_taktician
@@ -1,3 +1,3 @@
#!/bin/bash
-taktician analyze -quiet -mcts -limit 3s -depth 1 $1 | rg = | cut -d= -f2 | shuf -n 1
+taktician analyze -quiet -mcts -limit 3s -depth 1 $1 | grep = | cut -d= -f2 | shuf -n 1