summaryrefslogtreecommitdiff
path: root/share/hackvr/examples/tictactoe/run
diff options
context:
space:
mode:
Diffstat (limited to 'share/hackvr/examples/tictactoe/run')
-rwxr-xr-xshare/hackvr/examples/tictactoe/run6
1 files changed, 6 insertions, 0 deletions
diff --git a/share/hackvr/examples/tictactoe/run b/share/hackvr/examples/tictactoe/run
new file mode 100755
index 0000000..c60fc43
--- /dev/null
+++ b/share/hackvr/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 | ./game.sh > p
+rm p