summaryrefslogtreecommitdiff
path: root/share/hackvr/examples/tictactoe/run
blob: c60fc43ad3a88ec026e373464651f1e45471e0b5 (plain) (blame)
1
2
3
4
5
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