summaryrefslogtreecommitdiff
path: root/tictactoe/listen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tictactoe/listen.sh')
-rwxr-xr-xtictactoe/listen.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/tictactoe/listen.sh b/tictactoe/listen.sh
new file mode 100755
index 0000000..4379a3d
--- /dev/null
+++ b/tictactoe/listen.sh
@@ -0,0 +1,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