summaryrefslogtreecommitdiff
path: root/examples/tictactoe/listen.sh
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2018-03-29 19:48:58 -0500
committerepoch <epoch@hacking.allowed.org>2018-03-29 19:48:58 -0500
commit9e49dcb25e7ccea65948adb07be6206f867b79f5 (patch)
treefffcb9db8d1aa001696dccfdbee0fe75f14c3c5e /examples/tictactoe/listen.sh
parentbd406f6b15bc13861d235615fac3c7cbfee31a76 (diff)
downloadhackvr-9e49dcb25e7ccea65948adb07be6206f867b79f5.tar.gz
hackvr-9e49dcb25e7ccea65948adb07be6206f867b79f5.zip
moved tictactoe and made the reset button not move user back to default position
Diffstat (limited to 'examples/tictactoe/listen.sh')
-rwxr-xr-xexamples/tictactoe/listen.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/examples/tictactoe/listen.sh b/examples/tictactoe/listen.sh
new file mode 100755
index 0000000..0318cd2
--- /dev/null
+++ b/examples/tictactoe/listen.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+#mabe not. might be buggier.
+#cat board p1out | ncat -lp 1050 > p1in &
+#cat board p2out | ncat -lp 1051 > p2in &
+echo listening in port 1050 for player 1 and 1051 for player 2
+
+mknod pin p
+mknod p1out p
+mknod p2out p
+
+cat board p1out | ncat -lp 1050 > pin &
+cat board p2out | ncat -lp 1051 > pin &
+
+cat pin | ./game.sh | tee p1out p2out
+
+rm pin
+rm p1out
+rm p2out