summaryrefslogtreecommitdiff
path: root/share/hackvr/examples/tictactoe/game.sh
diff options
context:
space:
mode:
authorepochqwert <epoch@hacking.allowed.org>2019-02-07 08:47:30 +0000
committerepochqwert <epoch@hacking.allowed.org>2019-02-07 08:47:30 +0000
commit9f4b99177d8e563f5cfceaf34277d79a681c41f7 (patch)
tree20252e44897cf999b775dc55f80ab9b8d812d990 /share/hackvr/examples/tictactoe/game.sh
parentc45f918c635ea6f8d947f5e7bb7f646656c89b30 (diff)
downloadhackvr-9f4b99177d8e563f5cfceaf34277d79a681c41f7.tar.gz
hackvr-9f4b99177d8e563f5cfceaf34277d79a681c41f7.zip
changed listen.sh to not use named pipes and game.sh to not use uniq since it was causing a single line delay... because that's how it work.
Diffstat (limited to 'share/hackvr/examples/tictactoe/game.sh')
-rwxr-xr-xshare/hackvr/examples/tictactoe/game.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/share/hackvr/examples/tictactoe/game.sh b/share/hackvr/examples/tictactoe/game.sh
index 8c741fc..68df498 100755
--- a/share/hackvr/examples/tictactoe/game.sh
+++ b/share/hackvr/examples/tictactoe/game.sh
@@ -1,10 +1,10 @@
#!/usr/bin/env bash
turn=$( expr $RANDOM % 2)
-cat camera.pos
+cat camera.pos board
echo "go. player: $turn" >&2
-stdbuf -oL uniq \
- | grep --line-buffered action \
- | stdbuf -oL cut '-d ' -f1,3 | while read user group;do
+grep --line-buffered action \
+ | while read user derp group;do
+ echo FUCK >&2
if grep "_reset" <<<$group >/dev/null;then
printf "%s deleteallexcept .\n" "$user"
cat board