summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2017-12-19 03:55:05 -0600
committerepoch <epoch@hacking.allowed.org>2017-12-19 03:55:05 -0600
commitac2f7a61cd4060a617ae012ead020755c0ef4902 (patch)
treefd6df32a3b66cd3e4a54fd8292db04fdbd849fd1
parent9bed89b75e8b97307bc7a64fd034251cdea79867 (diff)
downloadhackvr-ac2f7a61cd4060a617ae012ead020755c0ef4902.tar.gz
hackvr-ac2f7a61cd4060a617ae012ead020755c0ef4902.zip
made tictactoe game.sh use the right parts of addshapes because added colors
-rwxr-xr-xtictactoe/game.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tictactoe/game.sh b/tictactoe/game.sh
index 29666f0..1d3737c 100755
--- a/tictactoe/game.sh
+++ b/tictactoe/game.sh
@@ -18,12 +18,12 @@ stdbuf -oL uniq \
printf "$user deletegroup %s\n" "$group"
#printf "$user deletegroup %s\n" "$group" > /dev/stderr
#need to get the first point of the group clicked and translate the new shape by that much
- translatex="$(grep "$group" board | grep -v '^#' | tr -s ' ' | cut '-d ' -f4)"
- translatey="$(grep "$group" board | grep -v '^#' | tr -s ' ' | cut '-d ' -f5)"
+ translatex="$(grep "$group" board | grep -v '^#' | tr -s ' ' | cut '-d ' -f5)"
+ translatey="$(grep "$group" board | grep -v '^#' | tr -s ' ' | cut '-d ' -f6)"
cat "marker$turn"
printf "%s move %s %s 2\n" "_marker" "$(expr "$translatex")" "$(expr "$translatey" - 2 )"
#printf "%s move %s %s 2\n" "_marker" "$(expr "$translatex")" "$(expr "$translatey" - 2 )" >/dev/stderr
- grep "$group" board | sed "s/$group/_marker2/g"
+ grep "$group" board | sed "s/$group/_marker2/g" #this is to make it still show the square around it.
printf "%s renamegroup _marker _marker%s%s\n" "$user" "$(date +%s)" "$RANDOM"
fi
done