summaryrefslogtreecommitdiff
path: root/share/hackvr/examples/tictactoe/run
blob: 4d49770345b009a933d6981e7b332574fe1230ef (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 p | hackvr | ./game.sh > p
rm p