summaryrefslogtreecommitdiff
path: root/tictactoe/listen.sh
blob: 4379a3d8a4e187498f435fec54f75a2d295d243b (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/sh

#mabe not. might be buggier.
#cat board p1out | ncat -lp 1050 > p1in &
#cat board p2out | ncat -lp 1051 > p2in &
cat board p1out | ncat -lp 1050 > p1in &
cat board p2out | ncat -lp 1051 > p1in &

cat p1in | ./game.sh | tee p1out p2out