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