summaryrefslogtreecommitdiff
path: root/share/hackvr/examples/tictactoe/run
blob: 0f14b8f8ce55f6c29ed6990646713ac3ff0a6d94 (plain) (blame)
1
2
3
4
5
6
#!/usr/bin/env bash
turn=$( expr $RANDOM % 2)
echo "go. player: $turn"
mknod p p
stdbuf -oL cat board p | hackvr | ./game.sh > p
rm p