summaryrefslogtreecommitdiff
path: root/examples/tictactoe/run
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2018-03-29 19:48:58 -0500
committerepoch <epoch@hacking.allowed.org>2018-03-29 19:48:58 -0500
commit9e49dcb25e7ccea65948adb07be6206f867b79f5 (patch)
treefffcb9db8d1aa001696dccfdbee0fe75f14c3c5e /examples/tictactoe/run
parentbd406f6b15bc13861d235615fac3c7cbfee31a76 (diff)
downloadhackvr-9e49dcb25e7ccea65948adb07be6206f867b79f5.tar.gz
hackvr-9e49dcb25e7ccea65948adb07be6206f867b79f5.zip
moved tictactoe and made the reset button not move user back to default position
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