summaryrefslogtreecommitdiff
path: root/tictactoe/run
blob: 8dddc99377d927a6adc0c315c4d20662a44b3a27 (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 "$USER" | ./game.sh > p
rm p