Fix in 1991/westley/ttt.sh

Don't assume '.' is in the path.

I note that at least under macOS this game does not work. I'll be
looking at the entries of this year at another time. I just need this
commit in to make some other changes unrelated.

The README.md was also updated - formatting fixes to turn it into a
markdown file proper.
This commit is contained in:
Cody Boone Ferguson committed 2023-03-17 07:13:34 -07:00
1 parent 892b94c5a6
commit dbbdedd30b
2 files changed
+8 -8

No files matched your search

+3 -3
View File
@@ -61,7 +61,7 @@ if [ ! -f merlyn.c ]; then
fi
# check to see if the copy worked
if [ ! -f merlyn.c ]; then
echo "ttt: Darn, coundn't copy westley.c to merlyn.c" 1>&2
echo "ttt: Darn, couldn't copy westley.c to merlyn.c" 1>&2
exit 4
fi
fi
@@ -85,9 +85,9 @@ fi
if [ ! -w ttt_game.c ]; then
rm -f ttt_game.c
if [ -z "$move" ]; then
merlyn | tee ttt_game.c
./merlyn | tee ttt_game.c
else
merlyn "$move" | tee ttt_game.c
./merlyn "$move" | tee ttt_game.c
fi
chmod +w ttt_game.c