summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2017-11-25 21:53:58 -0600
committerepoch <epoch@hacking.allowed.org>2017-11-25 21:53:58 -0600
commit7a253073e0c9d61391234b8c0fa2799838837cd8 (patch)
treea5334b1335beea42c465749b4a99a6da5cc3bbd5
parente27e8cac3047b54a57fa44ce1dbdc4ea170cd39d (diff)
downloadhackvr-7a253073e0c9d61391234b8c0fa2799838837cd8.tar.gz
hackvr-7a253073e0c9d61391234b8c0fa2799838837cd8.zip
created game.sh wrapper script for tictactoe's game.sh to allow network connections to play against each other
-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