diff options
author | epoch <epoch@hacking.allowed.org> | 2017-11-25 21:53:58 -0600 |
---|---|---|
committer | epoch <epoch@hacking.allowed.org> | 2017-11-25 21:53:58 -0600 |
commit | 7a253073e0c9d61391234b8c0fa2799838837cd8 (patch) | |
tree | a5334b1335beea42c465749b4a99a6da5cc3bbd5 /tictactoe/listen.sh | |
parent | e27e8cac3047b54a57fa44ce1dbdc4ea170cd39d (diff) | |
download | hackvr-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
Diffstat (limited to 'tictactoe/listen.sh')
-rwxr-xr-x | tictactoe/listen.sh | 9 |
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 |