summaryrefslogtreecommitdiff
path: root/tictactoe
diff options
context:
space:
mode:
Diffstat (limited to 'tictactoe')
-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