From 7a253073e0c9d61391234b8c0fa2799838837cd8 Mon Sep 17 00:00:00 2001 From: epoch Date: Sat, 25 Nov 2017 21:53:58 -0600 Subject: created game.sh wrapper script for tictactoe's game.sh to allow network connections to play against each other --- tictactoe/listen.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 tictactoe/listen.sh 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 -- cgit v1.2.3