summaryrefslogtreecommitdiff
path: root/examples/tictactoe/run
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tictactoe/run')
-rwxr-xr-xexamples/tictactoe/run6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/tictactoe/run b/examples/tictactoe/run
new file mode 100755
index 0000000..8dddc99
--- /dev/null
+++ b/examples/tictactoe/run
@@ -0,0 +1,6 @@
+#!/bin/bash
+turn=$( expr $RANDOM % 2)
+echo "go. player: $turn"
+mknod p p
+stdbuf -oL cat board p | hackvr "$USER" | ./game.sh > p
+rm p